mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-02 05:17:52 +00:00
Merge pull request #3759 from H27CK/opus-mingw-w64
Set _FORTIFY_SOURCE=0 if building Opus with mingw-w64
This commit is contained in:
commit
6ce3d174b7
1 changed files with 5 additions and 1 deletions
4
externals/opus/CMakeLists.txt
vendored
4
externals/opus/CMakeLists.txt
vendored
|
@ -203,8 +203,12 @@ endif()
|
||||||
target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING)
|
target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
|
if(MINGW)
|
||||||
|
target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=0)
|
||||||
|
else()
|
||||||
target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2)
|
target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99
|
# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99
|
||||||
# variable-length arrays for stack allocation USE_ALLOCA: Use alloca() for stack
|
# variable-length arrays for stack allocation USE_ALLOCA: Use alloca() for stack
|
||||||
|
|
Loading…
Reference in a new issue