mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
More linux fixes
This commit is contained in:
parent
e4fc8ce726
commit
4bc6c01ce6
3 changed files with 10 additions and 4 deletions
|
@ -28,7 +28,11 @@ elseif(UNIX)
|
||||||
add_definitions(-fpermissive)
|
add_definitions(-fpermissive)
|
||||||
add_definitions(-maes)
|
add_definitions(-maes)
|
||||||
# warnings
|
# 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()
|
endif()
|
||||||
|
|
||||||
add_definitions(-DVK_NO_PROTOTYPES)
|
add_definitions(-DVK_NO_PROTOTYPES)
|
||||||
|
|
|
@ -231,10 +231,12 @@ typedef union _LARGE_INTEGER {
|
||||||
#else
|
#else
|
||||||
#define DLLEXPORT
|
#define DLLEXPORT
|
||||||
#define DLLIMPORT
|
#define DLLIMPORT
|
||||||
#define DEBUG_BREAK
|
// fixme: random stack overflow solution. use with caution
|
||||||
|
#include <csignal>
|
||||||
|
#define DEBUG_BREAK raise(SIGTRAP)
|
||||||
#define ALIGN(N) __attribute__((aligned (N)))
|
#define ALIGN(N) __attribute__((aligned (N)))
|
||||||
#define NOINLINE __attribute__((noinline))
|
#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 ASSUME(X) do { if (!(X)) __builtin_unreachable(); } while (0)
|
||||||
#define THREAD_LOCAL __thread
|
#define THREAD_LOCAL __thread
|
||||||
#define POPCNT(X) __builtin_popcount((X))
|
#define POPCNT(X) __builtin_popcount((X))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue