mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
More macro updates from the pa_autoconf library. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
12 lines
464 B
Plaintext
12 lines
464 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_OPTION_SANITIZER
|
|
dnl
|
|
dnl Option to compile with sanitizers enabled.
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_OPTION_SANITIZER],
|
|
[PA_ARG_ENABLED([sanitizer],
|
|
[compile with sanitizers enabled],
|
|
[PA_ADD_LANGFLAGS([-fno-omit-frame-pointer])
|
|
PA_ADD_LANGFLAGS([-fsanitize=address])
|
|
PA_ADD_LANGFLAGS([-fsanitize=undefined])])])
|