Skip to content

Commit 145a085

Browse files
committed
gh-121996: Fix --disable-safety and --enable-slower-safety options
1 parent 490e0ad commit 145a085

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

configure

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ AS_VAR_IF([with_strict_overflow], [yes],
25032503
AC_MSG_CHECKING([for --disable-safety])
25042504
AC_ARG_ENABLE([safety],
25052505
[AS_HELP_STRING([--disable-safety], [disable usage of the security compiler options with no performance overhead])],
2506-
[AS_VAR_IF([enable_safety], [yes], [disable_safety=no], [disable_saftey=yes])], [disable_saftey=no])
2506+
[AS_VAR_IF([enable_safety], [yes], [disable_safety=no], [disable_safety=yes])], [disable_safety=no])
25072507
AC_MSG_RESULT([$disable_safety])
25082508

25092509
if test "$disable_safety" = "no"
@@ -2514,7 +2514,8 @@ fi
25142514

25152515
AC_MSG_CHECKING([for --enable-slower-safety])
25162516
AC_ARG_ENABLE([slower-safety],
2517-
[AS_HELP_STRING([--enable-slower-safety], [enable usage of the security compiler options with performance overhead])],[])
2517+
[AS_HELP_STRING([--enable-slower-safety], [enable usage of the security compiler options with performance overhead])],
2518+
[AS_VAR_IF([disable_slower_safety], [yes], [enable_slower_safety=no], [enable_slower_safety=yes])], [enable_slower_safety=no])
25182519
AC_MSG_RESULT([$enable_slower_safety])
25192520

25202521
if test "$enable_slower_safety" = "yes"

0 commit comments

Comments
 (0)