From 3e401d97546fe407ca72e9766cbdbb9c9212091e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 1 Oct 2018 15:43:14 +0200 Subject: Fix build for windows, update sibs binary --- backend/ninja/Ninja.cpp | 6 +++--- msvc/sibs.exe | Bin 356352 -> 372224 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 666bba7..53b1667 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -636,12 +636,12 @@ namespace backend Result Ninja::build(const SibsConfig &config, const _tinydir_char_t *savePath, LinkerFlagCallbackFunc staticLinkerFlagCallbackFunc, LinkerFlagCallbackFunc dynamicLinkerFlagCallback, GlobalIncludeDirCallbackFunc globalIncludeDirCallback) { bool isCCompilerClang = false; - Result cCompilerVersion = exec("cc --version"); + Result cCompilerVersion = exec(TINYDIR_STRING("cc --version")); if(cCompilerVersion && cCompilerVersion.unwrap().exitCode == 0 && cCompilerVersion.unwrap().execStdout.find("clang") != string::npos) isCCompilerClang = true; bool isCppCompilerClang = false; - Result cppCompilerVersion = exec("c++ --version"); + Result cppCompilerVersion = exec(TINYDIR_STRING("c++ --version")); if(cppCompilerVersion && cppCompilerVersion.unwrap().exitCode == 0 && cppCompilerVersion.unwrap().execStdout.find("clang") != string::npos) isCppCompilerClang = true; @@ -895,7 +895,7 @@ namespace backend compileCCommand.push_back(ninja::NinjaArg("/w")); // TODO: Remove this once locate_windows_sdk has been updated to locate multiple arch windows sdk -#ifdef _WIN32 +#if OS_TYPE == OS_TYPE_WINDOWS && defined(SIBS_ENV_32BIT) #error "sibs is currently not supported on windows 32-bit because locate_windows_sdk can only locate x64 windows sdk" #endif diff --git a/msvc/sibs.exe b/msvc/sibs.exe index 7898953..3d2ba7d 100644 Binary files a/msvc/sibs.exe and b/msvc/sibs.exe differ -- cgit v1.2.3