CI: build windows clang-cl

This commit is contained in:
Megamouse
2025-06-13 02:05:15 +02:00
parent c69d7bc758
commit 67a4b020fc
12 changed files with 338 additions and 24 deletions
+11 -2
View File
@@ -1,11 +1,20 @@
# Check and configure compiler options for RPCS3
if(MSVC)
add_compile_options(/Zc:throwingNew- /constexpr:steps16777216)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
check_cxx_compiler_flag("-msse -msse2 -mcx16" COMPILER_X86)
if (COMPILER_X86)
add_compile_options(-msse -msse2 -mcx16 -mavx -mavx2 -mavx512f -mavx512vbmi -mavx512vl -mavx512dq -mavx512vpopcntdq -maes -mrtm -mpclmul -mmwaitx -mwaitpkg)
endif()
add_link_options(/dynamicbase)
else()
add_compile_options(/Zc:throwingNew- /constexpr:steps16777216)
add_link_options(/DYNAMICBASE)
endif()
add_compile_definitions(
_CRT_SECURE_NO_DEPRECATE=1 _CRT_NON_CONFORMING_SWPRINTFS=1 _SCL_SECURE_NO_WARNINGS=1
NOMINMAX _ENABLE_EXTENDED_ALIGNED_STORAGE=1 _HAS_EXCEPTIONS=0)
add_link_options(/DYNAMICBASE)
#TODO: Some of these could be cleaned up
add_compile_options(/wd4805) # Comparing boolean and int