From 187db33589af22df38720032bb55e8745b63c362 Mon Sep 17 00:00:00 2001 From: Kerbiter Date: Wed, 12 Apr 2023 13:47:31 +0300 Subject: [PATCH] Add %VAR% handling, add space before /I for clarity --- drivers/lang/c/src/msvc/driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/lang/c/src/msvc/driver.c b/drivers/lang/c/src/msvc/driver.c index 9f34a74..ab954ac 100755 --- a/drivers/lang/c/src/msvc/driver.c +++ b/drivers/lang/c/src/msvc/driver.c @@ -174,10 +174,10 @@ void compile_src( bake_attr *include = ut_iter_next(&it); char* file = include->is.string; - if (file[0] == '/' || file[0] == '$' || file[0] == '\\' || (file[0] != 0 && file[1] == ':')) { - ut_strbuf_append(&cmd, " /I%s", file); + if (file[0] == '/' || 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); + ut_strbuf_append(&cmd, " /I %s\\%s", project->path, file); } } }