Skip to content

Commit

Permalink
Merge pull request #94 from Metadorius/fix/windows-include-paths
Browse files Browse the repository at this point in the history
Fix Windows include path handling
  • Loading branch information
SanderMertens authored Apr 11, 2023
2 parents 6a8e81f + 733bc96 commit 70ae214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/lang/c/src/msvc/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void compile_src(
bake_attr *include = ut_iter_next(&it);
char* file = include->is.string;

if (file[0] == '/' || file[0] == '$') {
if (file[0] == '/' || file[0] == '$' || file[0] == '\\' || (file[0] != 0 && file[1] == ':')) {
ut_strbuf_append(&cmd, " /I%s", file);
} else {
ut_strbuf_append(&cmd, " /I%s\\%s", project->path, file);
Expand Down

0 comments on commit 70ae214

Please sign in to comment.