Skip to content

Commit 8228ae6

Browse files
Fix compile flags for MSVC and Clang in CMakeLists
1 parent 4a009b1 commit 8228ae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpcs3/Emu/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ endif()
9191
target_include_directories(rpcs3_emu PUBLIC "${CMAKE_SOURCE_DIR}")
9292

9393
set_source_files_properties("../../Utilities/JITLLVM.cpp" "../../Utilities/JITASM.cpp" PROPERTIES
94-
COMPILE_FLAGS "$<IF:$<CXX_COMPILER_ID:MSVC>,$<NOT:$<CXX_COMPILER_ID:Clang>>/GR-,-fno-rtti>"
94+
COMPILE_FLAGS "$<IF:$<CXX_COMPILER_ID:MSVC>,$<IF:$<CXX_COMPILER_ID:Clang>,/GR-,>,-fno-rtti>"
9595
SKIP_PRECOMPILE_HEADERS ON
9696
)
9797

9898
set_source_files_properties("../util/yaml.cpp" PROPERTIES
99-
COMPILE_FLAGS "$<IF:$<CXX_COMPILER_ID:MSVC>,$<NOT:$<CXX_COMPILER_ID:Clang>>/EHsc,-fexceptions>"
99+
COMPILE_FLAGS "$<IF:$<CXX_COMPILER_ID:MSVC>,$<IF:$<CXX_COMPILER_ID:Clang>,/EHsc,>,-fexceptions>"
100100
SKIP_PRECOMPILE_HEADERS ON
101101
)
102102

0 commit comments

Comments
 (0)