mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
cmake: Replace /Zi with /Z7 for sccache support
Also allows better parallelization since there's no contention on a PDB file with compiling.
This commit is contained in:

committed by
Léo Lam

parent
712b078a5b
commit
6910fab63f
7
CMake/FlagsOverride.cmake
Normal file
7
CMake/FlagsOverride.cmake
Normal file
@ -0,0 +1,7 @@
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
foreach(f CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO)
|
||||
if("${${f}}" MATCHES "/Zi")
|
||||
string(REGEX REPLACE "/Zi" "/Z7" "${f}" "${${f}}")
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
Reference in New Issue
Block a user