Skip to content

Commit

Permalink
ci: fix arm64 windows build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
KhoraLee authored and Macdu committed Sep 5, 2024
1 parent 3d2fb53 commit 29123c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion triplets/x64-win-llvm/x64-win-llvm.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 29123c3

Please sign in to comment.