aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-16 02:06:56 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:58 +0200
commit6d3c3132bbc0421c42e587b869984fd39f0b35a2 (patch)
treed503e2163f82293713bbe0773b79b1b3342c130b /backend/ninja
parent04f7cf535992f05ea56c701f25a6adad564796ae (diff)
Fix cmake build library dependency order
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 69b480e..87370cf 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -1295,6 +1295,8 @@ namespace backend
projectGeneratedBinary += "/";
string noUndefinedFlag;
+// TODO: This causes issues with -ldl in bgfx example, where dlclose symbol is not found even though it's linked with -ldl
+#if 0
if(!onlyZigFiles)
{
bool isCompilerClangLike = (compilerType == RuntimeCompilerType::CLANG) || (compilerType == RuntimeCompilerType::EMSCRIPTEN);
@@ -1303,6 +1305,7 @@ namespace backend
else
noUndefinedFlag = isCompilerClangLike ? "-Wl,-undefined,error" : "-Wl,--no-undefined,--as-needed";
}
+#endif
ninja::NinjaVariable zigObjectArgs("object_args");
string objectZigArgs;