cs configure: avoid unneecssary copies of asan and ubsan flags
This commit is contained in:
parent
bf768e1093
commit
c7eb001be3
|
@ -1,8 +1,9 @@
|
|||
if test "${enable_asan}" = "yes" ; then
|
||||
ASAN="-fsanitize=address -fsanitize-recover=address -fno-omit-frame-pointer -fno-common"
|
||||
CFLAGS="$CFLAGS $ASAN"
|
||||
if test "${COPY_NEW_CFLAGS_TO_CPPFLAGS}" = "yes" ; then
|
||||
CPPFLAGS="$CPPFLAGS $ASAN"
|
||||
PREFLAGS="$PREFLAGS $ASAN"
|
||||
fi
|
||||
LDFLAGS="$LDFLAGS $ASAN"
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
if test "${enable_ubsan}" = "yes" ; then
|
||||
UBSAN="-fsanitize=undefined -fno-sanitize=alignment -fno-sanitize=float-divide-by-zero"
|
||||
CFLAGS="$CFLAGS $UBSAN"
|
||||
if test "${COPY_NEW_CFLAGS_TO_CPPFLAGS}" = "yes" ; then
|
||||
CPPFLAGS="$CPPFLAGS $UBSAN"
|
||||
PREFLAGS="$PREFLAGS $UBSAN"
|
||||
fi
|
||||
LDFLAGS="$LDFLAGS $UBSAN"
|
||||
fi
|
||||
|
|
3
racket/src/bc/configure
vendored
3
racket/src/bc/configure
vendored
|
@ -3500,6 +3500,7 @@ WINDRES=windres
|
|||
DLLTOOL=dlltool
|
||||
|
||||
PREFLAGS="$CPPFLAGS"
|
||||
COPY_NEW_CFLAGS_TO_CPPFLAGS=yes
|
||||
|
||||
OWN_LIBFFI="ON"
|
||||
|
||||
|
@ -6971,8 +6972,10 @@ fi
|
|||
if test "${enable_ubsan}" = "yes" ; then
|
||||
UBSAN="-fsanitize=undefined -fno-sanitize=alignment -fno-sanitize=float-divide-by-zero"
|
||||
CFLAGS="$CFLAGS $UBSAN"
|
||||
if test "${COPY_NEW_CFLAGS_TO_CPPFLAGS}" = "yes" ; then
|
||||
CPPFLAGS="$CPPFLAGS $UBSAN"
|
||||
PREFLAGS="$PREFLAGS $UBSAN"
|
||||
fi
|
||||
LDFLAGS="$LDFLAGS $UBSAN"
|
||||
fi
|
||||
|
||||
|
|
|
@ -270,6 +270,7 @@ WINDRES=windres
|
|||
DLLTOOL=dlltool
|
||||
|
||||
PREFLAGS="$CPPFLAGS"
|
||||
COPY_NEW_CFLAGS_TO_CPPFLAGS=yes
|
||||
|
||||
OWN_LIBFFI="ON"
|
||||
|
||||
|
|
8
racket/src/cs/c/configure
vendored
8
racket/src/cs/c/configure
vendored
|
@ -3251,6 +3251,8 @@ compress_boot_files_by_default=no
|
|||
|
||||
cs_auto_flags=--disable-auto-flags
|
||||
|
||||
COPY_NEW_CFLAGS_TO_CPPFLAGS=no
|
||||
|
||||
###### Autoconfigure #######
|
||||
|
||||
if test "${enable_ios}" != "" ; then
|
||||
|
@ -4316,7 +4318,6 @@ if test "$ARFLAGS" = '' ; then
|
|||
ARFLAGS=rc
|
||||
fi
|
||||
|
||||
|
||||
WINDRES=windres
|
||||
|
||||
############## platform tests ################
|
||||
|
@ -4894,8 +4895,10 @@ fi
|
|||
if test "${enable_ubsan}" = "yes" ; then
|
||||
UBSAN="-fsanitize=undefined -fno-sanitize=alignment -fno-sanitize=float-divide-by-zero"
|
||||
CFLAGS="$CFLAGS $UBSAN"
|
||||
if test "${COPY_NEW_CFLAGS_TO_CPPFLAGS}" = "yes" ; then
|
||||
CPPFLAGS="$CPPFLAGS $UBSAN"
|
||||
PREFLAGS="$PREFLAGS $UBSAN"
|
||||
fi
|
||||
LDFLAGS="$LDFLAGS $UBSAN"
|
||||
fi
|
||||
|
||||
|
@ -4905,13 +4908,14 @@ fi
|
|||
if test "${enable_asan}" = "yes" ; then
|
||||
ASAN="-fsanitize=address -fsanitize-recover=address -fno-omit-frame-pointer -fno-common"
|
||||
CFLAGS="$CFLAGS $ASAN"
|
||||
if test "${COPY_NEW_CFLAGS_TO_CPPFLAGS}" = "yes" ; then
|
||||
CPPFLAGS="$CPPFLAGS $ASAN"
|
||||
PREFLAGS="$PREFLAGS $ASAN"
|
||||
fi
|
||||
LDFLAGS="$LDFLAGS $ASAN"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
############## Makefile includes ################
|
||||
|
||||
if test "$INCLUDEDEP" = "#" ; then
|
||||
|
|
|
@ -170,6 +170,8 @@ compress_boot_files_by_default=no
|
|||
|
||||
cs_auto_flags=--disable-auto-flags
|
||||
|
||||
COPY_NEW_CFLAGS_TO_CPPFLAGS=no
|
||||
|
||||
###### Autoconfigure #######
|
||||
|
||||
m4_include(../ac/sdk_ios.m4)
|
||||
|
@ -199,7 +201,6 @@ if test "$ARFLAGS" = '' ; then
|
|||
ARFLAGS=rc
|
||||
fi
|
||||
|
||||
|
||||
WINDRES=windres
|
||||
|
||||
############## platform tests ################
|
||||
|
|
Loading…
Reference in New Issue
Block a user