Skip to content

Commit ab0aace

Browse files
committed
Fixed GetSourceDirectory in the parser generator to start from the current working directory.
1 parent 2ad39a9 commit ab0aace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CppParser/Bindings/ParserGen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public ParserGen(GeneratorKind kind, string triple, CppAbi abi)
3030

3131
static string GetSourceDirectory(string dir)
3232
{
33-
var directory = Directory.GetParent(Directory.GetCurrentDirectory());
33+
var directory = new DirectoryInfo(Directory.GetCurrentDirectory());
3434

3535
while (directory != null)
3636
{

0 commit comments

Comments
 (0)