mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
Add -fno-stack-protector to flags when building libzigcpp
This allows both debug and release builds to link to it without forcing release builds to link to libssp
This commit is contained in:
parent
87d09edf2d
commit
4df7f7c86a
@ -694,9 +694,9 @@ endif()
|
||||
|
||||
add_library(zigcpp STATIC ${ZIG_CPP_SOURCES})
|
||||
if(ZIG_PIE)
|
||||
set(ZIGCPP_CXX_FLAGS "${EXE_CXX_FLAGS} -fPIC")
|
||||
set(ZIGCPP_CXX_FLAGS "${EXE_CXX_FLAGS} -fno-stack-protector -fPIC")
|
||||
else()
|
||||
set(ZIGCPP_CXX_FLAGS "${EXE_CXX_FLAGS}")
|
||||
set(ZIGCPP_CXX_FLAGS "${EXE_CXX_FLAGS} -fno-stack-protector")
|
||||
endif()
|
||||
set_target_properties(zigcpp PROPERTIES COMPILE_FLAGS ${ZIGCPP_CXX_FLAGS})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user