mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 05:10:00 +00:00
fix gcc/clang build by adding -fpermssive and -Wno-address-of-temporary
This commit is contained in:
parent
3f60034c39
commit
ef28d12d85
|
@ -71,6 +71,13 @@ workspace "reLCS"
|
||||||
symbols "Full"
|
symbols "Full"
|
||||||
staticruntime "off"
|
staticruntime "off"
|
||||||
|
|
||||||
|
-- for CVECTORHACK
|
||||||
|
configuration { "gmake*" }
|
||||||
|
buildoptions { "-fpermissive" }
|
||||||
|
|
||||||
|
filter { "platforms:macosx*" }
|
||||||
|
buildoptions { "-Wno-address-of-temporary" }
|
||||||
|
|
||||||
if _OPTIONS["with-asan"] then
|
if _OPTIONS["with-asan"] then
|
||||||
buildoptions { "-fsanitize=address -g3 -fno-omit-frame-pointer" }
|
buildoptions { "-fsanitize=address -g3 -fno-omit-frame-pointer" }
|
||||||
linkoptions { "-fsanitize=address" }
|
linkoptions { "-fsanitize=address" }
|
||||||
|
|
|
@ -102,6 +102,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
|
||||||
if (NOT LIBRW_PLATFORM_PS2)
|
if (NOT LIBRW_PLATFORM_PS2)
|
||||||
target_compile_options(${EXECUTABLE}
|
target_compile_options(${EXECUTABLE}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
-fpermissive # for CVECTORHACK
|
||||||
|
-Wno-address-of-temporary # for CVECTORHACK
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wdouble-promotion
|
-Wdouble-promotion
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
|
|
Loading…
Reference in a new issue