Add architecture flags for Clang

This commit is contained in:
Roelf-Jilling 2018-11-18 00:20:43 +01:00
parent 39b32ff7d6
commit 449eec40f8

View File

@ -86,6 +86,13 @@ before_build:
if ("$env:USE_TOOLSET" -eq "LLVM") {
$env:CC = "clang-cl"
$env:CXX = "clang-cl"
if ("$env:PLATFORM" -eq "x86") {
$env:CFLAGS = "-m32";
$env:CXXFLAGS = "-m32";
} else {
$env:CFLAGS = "-m64";
$env:CXXFLAGS = "-m64";
}
} elseif ("$env:USE_TOOLSET" -ne "MSVC") {
Write-Warning "Configuration error: Invalid value for 'USE_TOOLSET'. Assume MSVC"
}