diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 49f79e21..fd2c4add 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,7 +28,11 @@ elseif(UNIX) add_definitions(-fpermissive) add_definitions(-maes) # warnings - add_compile_options(-Wno-switch -Wno-ignored-attributes -Wno-deprecated-enum-enum-conversion -Wno-ambiguous-reversed-operator) + if(CMAKE_C_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wno-ambiguous-reversed-operator) + endif() + + add_compile_options(-Wno-switch -Wno-ignored-attributes -Wno-deprecated-enum-enum-conversion) endif() add_definitions(-DVK_NO_PROTOTYPES) diff --git a/src/Cafe/CMakeLists.txt b/src/Cafe/CMakeLists.txt index 1e3fe306..b9d16185 100644 --- a/src/Cafe/CMakeLists.txt +++ b/src/Cafe/CMakeLists.txt @@ -31,4 +31,4 @@ target_link_libraries(CemuCafe ih264d zarchive) IF(WIN32) target_link_libraries(CemuCafe iphlpapi) -ENDIF() \ No newline at end of file +ENDIF() diff --git a/src/Common/precompiled.h b/src/Common/precompiled.h index 449f7ac8..1d00311f 100644 --- a/src/Common/precompiled.h +++ b/src/Common/precompiled.h @@ -231,10 +231,12 @@ typedef union _LARGE_INTEGER { #else #define DLLEXPORT #define DLLIMPORT - #define DEBUG_BREAK + // fixme: random stack overflow solution. use with caution + #include + #define DEBUG_BREAK raise(SIGTRAP) #define ALIGN(N) __attribute__((aligned (N))) #define NOINLINE __attribute__((noinline)) - // fixme: random github solution. use it with caution + // fixme: random stack overflow solution. use it with caution #define ASSUME(X) do { if (!(X)) __builtin_unreachable(); } while (0) #define THREAD_LOCAL __thread #define POPCNT(X) __builtin_popcount((X))