Bug report
Bug description:
Summary
Passing no to a sanitizer option is reported as disabled, but the option's action still adds sanitizer compiler and linker flags. For AddressSanitizer, it also disables pymalloc.
Reproduction
mkdir build
cd build
../configure --with-address-sanitizer=no
grep -E '^(BASECFLAGS|LDFLAGS)=' Makefile
grep WITH_PYMALLOC pyconfig.h
Actual Behavior
Configure reports:
checking for --with-address-sanitizer... no
checking for --with-pymalloc... no
Despite that output, the AddressSanitizer action adds -fsanitize=address to BASECFLAGS and LDFLAGS, and sets with_pymalloc=no.
Expected Behavior
--with-address-sanitizer=no should not enable AddressSanitizer flags and should not change the pymalloc setting. It should have the same result as omitting the option or using the corresponding --without-... form.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
Summary
Passing
noto a sanitizer option is reported as disabled, but the option's action still adds sanitizer compiler and linker flags. For AddressSanitizer, it also disables pymalloc.Reproduction
Actual Behavior
Configure reports:
Despite that output, the AddressSanitizer action adds
-fsanitize=addresstoBASECFLAGSandLDFLAGS, and setswith_pymalloc=no.Expected Behavior
--with-address-sanitizer=noshould not enable AddressSanitizer flags and should not change the pymalloc setting. It should have the same result as omitting the option or using the corresponding--without-...form.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs