Skip to content

Commit

Permalink
fixup! build: Generate share/toolchain.cmake in depends
Browse files Browse the repository at this point in the history
The `HARDENING` is a boolean option, not a string type.
  • Loading branch information
hebasto committed Apr 22, 2024
1 parent 63bbe26 commit dc20cdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions depends/toolchain.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ if(NOT WITH_USDT AND "@no_usdt@" STREQUAL "1")
set(WITH_USDT OFF CACHE STRING "Enable tracepoints for Userspace, Statically Defined Tracing.")
endif()

if(NOT HARDENING AND "@no_harden@" STREQUAL "1")
set(HARDENING OFF CACHE STRING "Attempt to harden the resulting executables.")
if("@no_harden@")
set(HARDENING OFF CACHE BOOL "")
else()
set(HARDENING ON CACHE BOOL "")
endif()

if("@multiprocess@" STREQUAL "1")
Expand Down

0 comments on commit dc20cdf

Please sign in to comment.