aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-04 04:29:04 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commitf1a80658b08c8b489772052b5569cb1d3086db08 (patch)
tree32102f20750e8bd3b4ebb822f12bd4711d4fc602 /backend
parent31899d0a48108515d13508b660fb3bb82b869430 (diff)
Store dependencies in different directories depending on target platform
This fixed conflicts in cache filepath when building 32-bit and 64-bit project on the same machine or when doing cross compilation.
Diffstat (limited to 'backend')
-rw-r--r--backend/ninja/Ninja.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 71e9c08..526fccb 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -325,7 +325,8 @@ namespace backend
if (!globalLibDirResult)
return Result<bool>::Err(globalLibDirResult);
FileString globalLibDir = globalLibDirResult.unwrap();
- globalLibDir += TINYDIR_STRING("/.cache/sibs/lib");
+ globalLibDir += TINYDIR_STRING("/.cache/sibs/lib/");
+ globalLibDir += toFileString(asString(config.platform));
Result<bool> createGlobalLibDirResult = createDirectoryRecursive(globalLibDir.c_str());
if(createGlobalLibDirResult.isErr())
return createGlobalLibDirResult;