diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/ninja/Ninja.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 7bdcbaa..bacbd4c 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1144,14 +1144,14 @@ namespace backend ninja::NinjaVariable zigHeaderFile("headerFile"); vector<ninja::NinjaArg> zigTestArgs = { - ninja::NinjaArg::createRaw("zig test $in --output $out --output-h $headerFile") + ninja::NinjaArg::createRaw("zig test $in --name $out -femit-h $headerFile") }; vector<ninja::NinjaArg> compileZigArgs = { ninja::NinjaArg::createRaw("zig build-obj"), ninja::NinjaArg::createRaw("$in"), - ninja::NinjaArg::createRaw("--output-h $headerFile"), - ninja::NinjaArg::createRaw("--output $out") + ninja::NinjaArg::createRaw("-femit-h"), + ninja::NinjaArg::createRaw("--name $out") }; // TODO: Find a way to do this more efficiently @@ -1342,8 +1342,8 @@ namespace backend { buildExeArgs.insert(buildExeArgs.end(), { ninja::NinjaArg::createRaw("zig build-exe"), - ninja::NinjaArg::createRaw("--name __tmp_zig"), - ninja::NinjaArg::createRaw("--output $out"), + //ninja::NinjaArg::createRaw("--name __tmp_zig"), + ninja::NinjaArg::createRaw("--name $out"), ninja::NinjaArg::createRaw("$object_args"), }); buildExeArgs.insert(buildExeArgs.end(), commonZigArgs.begin(), commonZigArgs.end()); @@ -1493,8 +1493,8 @@ namespace backend { buildStaticArgs.insert(buildStaticArgs.end(), { ninja::NinjaArg::createRaw("zig build-lib --static"), - ninja::NinjaArg::createRaw("--name __tmp_zig"), - ninja::NinjaArg::createRaw("--output $out"), + //ninja::NinjaArg::createRaw("--name __tmp_zig"), + ninja::NinjaArg::createRaw("--name $out"), ninja::NinjaArg::createRaw("$object_args") }); buildStaticArgs.insert(buildStaticArgs.end(), commonZigArgs.begin(), commonZigArgs.end()); @@ -1578,8 +1578,8 @@ namespace backend { buildDynamicArgs.insert(buildDynamicArgs.end(), { ninja::NinjaArg::createRaw("zig build-lib --rdynamic"), - ninja::NinjaArg::createRaw("--name __tmp_zig"), - ninja::NinjaArg::createRaw("--output $out"), + //ninja::NinjaArg::createRaw("--name __tmp_zig"), + ninja::NinjaArg::createRaw("--name $out"), ninja::NinjaArg::createRaw("$object_args") }); buildDynamicArgs.insert(buildDynamicArgs.end(), commonZigArgs.begin(), commonZigArgs.end()); |