diff --git a/compiler/src/dmd/link.d b/compiler/src/dmd/link.d index 750c57cf58..b93b9fd17d 100644 --- a/compiler/src/dmd/link.d +++ b/compiler/src/dmd/link.d @@ -993,7 +993,7 @@ public int runPreprocessor(Loc loc, const(char)[] cpp, const(char)[] filename, c */ OutBuffer buf; buf.writestring(cpp); - buf.printf(" /P /Zc:preprocessor /PD /nologo /utf-8 %.*s /FI%s /Fi%.*s", + buf.printf(" /P /Zc:preprocessor /PD /nologo /utf-8 \"%.*s\" \"/FI%s\" \"/Fi%.*s\"", cast(int)filename.length, filename.ptr, importc_h, cast(int)output.length, output.ptr); /* Append preprocessor switches to command line