From 7c0ec4cc4360d086b09ea4ad2d05c3294d16cfb3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Nov 2018 10:00:33 +0100 Subject: Fix build for windows and mingw --- backend/ninja/Ninja.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backend/ninja/Ninja.cpp') diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index d5bfc67..f8c3ae9 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1431,12 +1431,12 @@ namespace backend case Compiler::MINGW_W64: case Compiler::GCC: { - generatedFile = "lib" + config.getPackageName() + "." + CONFIG_STATIC_LIB_FILE_EXTENSION; + generatedFile = "lib" + config.getPackageName() + "." + toUtf8(CONFIG_STATIC_LIB_FILE_EXTENSION); break; } case Compiler::MSVC: { - generatedFile = config.getPackageName() + "." + CONFIG_STATIC_LIB_FILE_EXTENSION; + generatedFile = config.getPackageName() + "." + toUtf8(CONFIG_STATIC_LIB_FILE_EXTENSION); break; } } @@ -1510,7 +1510,7 @@ namespace backend case Compiler::MINGW_W64: case Compiler::GCC: { - const char *fileExtension = CONFIG_DYNAMIC_LIB_FILE_EXTENSION; + string fileExtension = toUtf8(CONFIG_DYNAMIC_LIB_FILE_EXTENSION); if(compilerType == RuntimeCompilerType::EMSCRIPTEN) fileExtension = "wasm"; else if(config.getCompiler() == Compiler::MINGW_W64) @@ -1520,7 +1520,7 @@ namespace backend } case Compiler::MSVC: { - generatedFile = config.getPackageName() + "." + CONFIG_DYNAMIC_LIB_FILE_EXTENSION; + generatedFile = config.getPackageName() + "." + toUtf8(CONFIG_DYNAMIC_LIB_FILE_EXTENSION); break; } } -- cgit v1.2.3