mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 02:05:47 +00:00
Fix GCC builds with Debug build type
This commit is contained in:
parent
127fdbc93e
commit
d60cf76e2d
2 changed files with 14 additions and 0 deletions
|
@ -241,6 +241,15 @@ if (MSVC)
|
|||
)
|
||||
else()
|
||||
set_source_files_properties(stb.cpp PROPERTIES COMPILE_OPTIONS "-Wno-implicit-fallthrough;-Wno-missing-declarations;-Wno-missing-field-initializers")
|
||||
|
||||
# Get around GCC failing with intrinsics in Debug
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
set_property(
|
||||
SOURCE stb.cpp
|
||||
APPEND
|
||||
PROPERTY COMPILE_OPTIONS ";-O2"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue