Skip to content

Commit 2cfd76b

Browse files
committed
Fully resolve include dirs paths in driver option validation.
This helps later on to have canonnical paths for relative path handling.
1 parent ef084fa commit 2cfd76b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Generator/Driver.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ void ValidateOptions()
6666

6767
if (module.OutputNamespace == null)
6868
module.OutputNamespace = module.LibraryName;
69+
70+
for (int i = 0; i < module.IncludeDirs.Count; i++)
71+
{
72+
var dir = new DirectoryInfo(module.IncludeDirs[i]);
73+
module.IncludeDirs[i] = dir.FullName;
74+
}
6975
}
7076

7177
if (Options.NoGenIncludeDirs != null)

0 commit comments

Comments
 (0)