mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03: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:
committed by
Andrew Kelley
parent
87d09edf2d
commit
4df7f7c86a
+2
-2
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user