Allow Yuzu to be built using Clang-CL for better compiler optimizations for Windows

Also updates Boost to 1.88.0
This commit is contained in:
spectranator
2025-04-12 18:44:18 +02:00
parent 709f70a3b2
commit a640bbee41
49 changed files with 349 additions and 199 deletions

View File

@@ -32,7 +32,7 @@ add_library(input_common STATIC
input_poller.h
main.cpp
main.h
precompiled_headers.h
precompiled_headers.hpp
)
if (MSVC)
@@ -42,7 +42,9 @@ if (MSVC)
)
else()
target_compile_options(input_common PRIVATE
-Werror=conversion
# Causes Boost to fail to compile, let's just let it be a warning for now.
#-Werror=conversion
-Wconversion
)
endif()
@@ -89,7 +91,7 @@ create_target_directory_groups(input_common)
target_link_libraries(input_common PUBLIC hid_core PRIVATE common Boost::headers)
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(input_common PRIVATE precompiled_headers.h)
target_precompile_headers(input_common PRIVATE precompiled_headers.hpp)
endif()
if (ANDROID)