Skip to content

Commit 245706c

Browse files
Merge pull request #95 from Metadorius/fix/windows-path-2-the-electric-boogaloo
Add %VAR% handling, add space before /I for clarity
2 parents 70ae214 + 187db33 commit 245706c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/lang/c/src/msvc/driver.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ void compile_src(
174174
bake_attr *include = ut_iter_next(&it);
175175
char* file = include->is.string;
176176

177-
if (file[0] == '/' || file[0] == '$' || file[0] == '\\' || (file[0] != 0 && file[1] == ':')) {
178-
ut_strbuf_append(&cmd, " /I%s", file);
177+
if (file[0] == '/' || file[0] == '$' || file[0] == '%' || file[0] == '\\' || (file[0] != 0 && file[1] == ':')) {
178+
ut_strbuf_append(&cmd, " /I %s", file);
179179
} else {
180-
ut_strbuf_append(&cmd, " /I%s\\%s", project->path, file);
180+
ut_strbuf_append(&cmd, " /I %s\\%s", project->path, file);
181181
}
182182
}
183183
}

0 commit comments

Comments
 (0)