From 79cc3a081283285dbbcb7dde196c53b11c7c5c27 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 21 Jun 2020 13:16:57 +0200 Subject: Fix gitmodule url, working on fixing zig... --- .gitmodules | 2 +- 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 zigTestArgs = { - ninja::NinjaArg::createRaw("zig test $in --output $out --output-h $headerFile") + ninja::NinjaArg::createRaw("zig test $in --name $out -femit-h $headerFile") }; vector 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()); -- cgit v1.2.3