From f1a80658b08c8b489772052b5569cb1d3086db08 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Nov 2018 04:29:04 +0100 Subject: 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. --- backend/ninja/Ninja.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/ninja') 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::Err(globalLibDirResult); FileString globalLibDir = globalLibDirResult.unwrap(); - globalLibDir += TINYDIR_STRING("/.cache/sibs/lib"); + globalLibDir += TINYDIR_STRING("/.cache/sibs/lib/"); + globalLibDir += toFileString(asString(config.platform)); Result createGlobalLibDirResult = createDirectoryRecursive(globalLibDir.c_str()); if(createGlobalLibDirResult.isErr()) return createGlobalLibDirResult; -- cgit v1.2.3