Changeset: cdde8761526f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cdde8761526f
Modified Files:
        configure.ag
Branch: Jul2017
Log Message:

Check that --enable-sanitizer actually does something.


diffs (17 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -738,8 +738,12 @@ AS_VAR_IF([enable_sanitizer], [no], [], 
                        AS_VAR_IF([enable_sanitizer], [yes],
                                [MCHECK_ADD_FLAG([-fsanitize=address])],
                                [MCHECK_ADD_FLAG([-fsanitize=$enable_sanitizer])
-                               AS_VAR_IF([enable_sanitizer], [thread],
+                                AS_VAR_IF([enable_sanitizer], [thread],
                                        [X_CFLAGS="$X_CFLAGS 
-DNO_ATOMIC_INSTRUCTIONS"])])
+                       AS_CASE([$X_CFLAGS],
+                               [*-fsanitize=*],
+                               [],
+                               [AC_MSG_ERROR([--enable-sanitizer not supported 
by this compiler])])
                        MCHECK_ADD_FLAG([-fno-omit-frame-pointer])],
                [AC_MSG_ERROR([--enable-sanitizer only supported with GCC])])])
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to