fix .d file processing and use -MV to quote spaces

This commit is contained in:
Andrew Kelley
2019-03-07 14:30:50 -05:00
parent 431b3b2459
commit 2caf39c961
5 changed files with 39 additions and 5 deletions

View File

@@ -8367,6 +8367,7 @@ static bool gen_c_object(CodeGen *g, Buf *self_exe_path, CFile *c_file) {
Buf *out_dep_path = buf_sprintf("%s.d", buf_ptr(out_obj_path));
args.append("-MD");
args.append("-MV");
args.append("-MF");
args.append(buf_ptr(out_dep_path));