Skip to content

Commit ad75530

Browse files
KhoraLeeAniLeo
authored andcommitted
ci: fix arm64 windows build failure
1 parent 183ca7f commit ad75530

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ set(ignore_werror "/WX-")
5050
cmake_language(DEFER CALL add_compile_options "/WX-") # make sure the flag is added at the end!
5151

5252
# general architecture flags
53-
set(arch_flags "-mcrc32")
53+
set(arch_flags "")
54+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
55+
string(APPEND arch_flags "-mcrc32")
56+
endif()
5457
# -mcrc32 for libpq
5558
# -mrtm for tbb (will break qtdeclarative since it cannot run the executables in CI)
5659
# -msse4.2 for everything which normally cl can use. (Otherwise strict sse2 only.)

0 commit comments

Comments
 (0)