diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-15 23:30:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | c59f08863e5a131e2df6ddc9acd4bd7366ebe6eb (patch) | |
tree | 83d74d64dc20c462ffa808de6dcaeaff56b10015 | |
parent | 1bd1d810cd2a9607ea9795278055ccf6846ab442 (diff) |
Fix tests when main project has only header files
-rw-r--r-- | backend/ninja/Ninja.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 3e69ef1..4202a82 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1294,11 +1294,13 @@ namespace backend // TODO: For now zig projects (zig object files) are built with c/c++ compiler, // they should be built with zig if project only contains zig files. // But how to combine object files with zig? build-exe only wants to accept .zig files - string projectGeneratedBinary = "\""; - projectGeneratedBinary += savePathUtf8; - projectGeneratedBinary += "/"; + string projectGeneratedBinary; if (!sourceFiles.empty() && !zigTest) { + projectGeneratedBinary = "\""; + projectGeneratedBinary += savePathUtf8; + projectGeneratedBinary += "/"; + string noUndefinedFlag; if(!onlyZigFiles) { |