From 449eec40f89a0642d9d59b67876a7eebf8966c73 Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Sun, 18 Nov 2018 00:20:43 +0100 Subject: [PATCH] Add architecture flags for Clang --- appveyor.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e857195..36dfd50 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -84,8 +84,15 @@ before_build: } $env:ARCHITECTURE = $env:PLATFORM if ("$env:USE_TOOLSET" -eq "LLVM") { - $env:CC = "clang-cl" - $env:CXX = "clang-cl" + $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" }