diff options
-rw-r--r-- | .gitmodules | 2 | ||||
-rw-r--r-- | backend/ninja/Ninja.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/.gitmodules b/.gitmodules index 9f3d5bc..c5602c8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "depends/libninja"] path = depends/libninja - url = https://gitlab.com/DEC05EBA/libninja.git + url = https://dec05eba.com/dec05eba/libninja.git 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()); |