Switch the default to enabling CFGuard in all individual build-* scripts

This commit is contained in:
Martin Storsjö committed 2023-01-29 01:09:17 +02:00
1 parent ce554e93c5
commit 36f8c1359e
6 files changed
+13 -7

No files matched your search

+8 -2
View File
@@ -19,8 +19,8 @@ set -e
SRC_DIR=../lib/builtins
BUILD_SUFFIX=
BUILD_BUILTINS=TRUE
ENABLE_CFGUARD=
CFGUARD_CFLAGS=
ENABLE_CFGUARD=1
CFGUARD_CFLAGS="-mguard=cf"
while [ $# -gt 0 ]; do
if [ "$1" = "--build-sanitizers" ]; then
@@ -28,6 +28,12 @@ while [ $# -gt 0 ]; do
BUILD_SUFFIX=-sanitizers
SANITIZERS=1
BUILD_BUILTINS=FALSE
# Override the default cfguard options here; this unfortunately
# also overrides the user option if --enable-cfguard is passed
# before --build-sanitizers (although that combination isn't
# really intended/supported anyway).
CFGUARD_CFLAGS=
ENABLE_CFGUARD=
elif [ "$1" = "--enable-cfguard" ]; then
CFGUARD_CFLAGS="-mguard=cf"
ENABLE_CFGUARD=1