gh-96821: Add config option --with-strict-overflow
by matthiasgoergens · Pull Request #96823 · python/cpython (original) (raw)
@erlend-aasland I was interested in picking this up, so I added the help message change you suggested here #96823 (comment) to the PR
Great, thanks :)
I was looking into adding the warn as well, but I'm not familiar with autoconf. The existing PR looks like it's missing something to me... should we be setting
ac_cv_cc_supports_fstrict_overflow
in the branches of theAC_COMPILE_IFELSE
?
Yes; if we don't, configure
will execute this check for every run, even if we're using the -C
flag. Also, we must not set STRICT_OVERFLOW_CFLAGS
and NO_STRICT_OVERFLOW_CFLAGS
inside the AC_CACHE_CHECK
; instead, add a AS_VAR_IF
after the check, and set those two variables if ac_cv_cc_supports_fstrict_overflow
is yes
.