mirror of
https://github.com/emqx/neuron.git
synced 2026-10-16 20:30:39 +08:00
Merge pull request #2835 from fengzeroz/main
compile with strong protector
This commit is contained in:
@@ -42,6 +42,8 @@ endif(USE_GCOV)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -g")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O0")
|
||||
add_compile_options(-fstack-protector-strong)
|
||||
add_link_options(-fstack-protector-strong)
|
||||
|
||||
if(NOT DISABLE_ASAN)
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -fsanitize=address")
|
||||
|
||||
Reference in New Issue
Block a user