From 29123c3a102baae4158a828a684e54c3de4e7e80 Mon Sep 17 00:00:00 2001 From: Seungyun Lee Date: Thu, 5 Sep 2024 09:11:59 +0900 Subject: [PATCH] ci: fix arm64 windows build failure --- triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake b/triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake index 3f2f9bd..104c891 100644 --- a/triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake +++ b/triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake @@ -50,7 +50,10 @@ set(ignore_werror "/WX-") cmake_language(DEFER CALL add_compile_options "/WX-") # make sure the flag is added at the end! # general architecture flags -set(arch_flags "-mcrc32") +set(arch_flags "") +if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64) + string(APPEND arch_flags "-mcrc32") +endif() # -mcrc32 for libpq # -mrtm for tbb (will break qtdeclarative since it cannot run the executables in CI) # -msse4.2 for everything which normally cl can use. (Otherwise strict sse2 only.)