mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Add architecture flags for Clang
This commit is contained in:
parent
39b32ff7d6
commit
449eec40f8
@ -86,6 +86,13 @@ before_build:
|
|||||||
if ("$env:USE_TOOLSET" -eq "LLVM") {
|
if ("$env:USE_TOOLSET" -eq "LLVM") {
|
||||||
$env:CC = "clang-cl"
|
$env:CC = "clang-cl"
|
||||||
$env:CXX = "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") {
|
} elseif ("$env:USE_TOOLSET" -ne "MSVC") {
|
||||||
Write-Warning "Configuration error: Invalid value for 'USE_TOOLSET'. Assume MSVC"
|
Write-Warning "Configuration error: Invalid value for 'USE_TOOLSET'. Assume MSVC"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user