[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/main] configure.ac: Define ENABLE_FRAGILE_HARDENING macro



commit 352677556e14480753f75e8abe1f584f1580f1b2
Author: Simon South <simon@xxxxxxxxxxxxxx>
Date:   Wed Sep 22 14:42:45 2021 -0400

    configure.ac: Define ENABLE_FRAGILE_HARDENING macro
    
    Allow conditional compilation based on whether the
    "--enable-fragile-hardening" configure option was specified.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 23ba4b0d2d..b4617a4003 100644
--- a/configure.ac
+++ b/configure.ac
@@ -233,6 +233,7 @@ AC_ARG_ENABLE(fragile-hardening,
     AS_HELP_STRING(--enable-fragile-hardening, [enable more fragile and expensive compiler hardening; makes Tor slower]))
 if test "x$enable_expensive_hardening" = "xyes" || test "x$enable_fragile_hardening" = "xyes"; then
   fragile_hardening="yes"
+  AC_DEFINE(ENABLE_FRAGILE_HARDENING, 1, [Defined if we're building with additional, fragile and expensive compiler hardening])
   AC_DEFINE(DEBUG_SMARTLIST, 1, [Enable smartlist debugging])
 fi
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits