summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKushal Das <mail@kushaldas.in>2023-01-18 18:43:49 (GMT)
committerGitHub <noreply@github.com>2023-01-18 18:43:49 (GMT)
commit75c8133efec035ec1083ebd8e7d43ef340c2e581 (patch)
tree18352cf36b167d56b5dc637c69abdc49e91e410f /configure
parent1f0d0a432cf431882b432eeba8315f84f818da6b (diff)
downloadcpython-75c8133efec035ec1083ebd8e7d43ef340c2e581.zip
cpython-75c8133efec035ec1083ebd8e7d43ef340c2e581.tar.gz
cpython-75c8133efec035ec1083ebd8e7d43ef340c2e581.tar.bz2
gh-100340: Allows -Wno-int-conversion for wasm (#100341)
Fixes #100340 allows -Wno-int-conversion for wasm
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure38
1 files changed, 38 insertions, 0 deletions
diff --git a/configure b/configure
index 5b6750a..144b35d 100755
--- a/configure
+++ b/configure
@@ -8743,6 +8743,44 @@ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
+$as_echo_n "checking if we can disable $CC int-conversion warning... " >&6; }
+if ${ac_cv_disable_int_conversion_warning+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ py_cflags=$CFLAGS
+ as_fn_append CFLAGS "-Wint-conversion -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_disable_int_conversion_warning=yes
+else
+ ac_cv_disable_int_conversion_warning=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$py_cflags
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
+$as_echo "$ac_cv_disable_int_conversion_warning" >&6; }
+
+
+ if test "x$ac_cv_disable_int_conversion" = xyes; then :
+ CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"
+fi
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
$as_echo_n "checking if we can disable $CC missing-field-initializers warning... " >&6; }
if ${ac_cv_disable_missing_field_initializers_warning+:} false; then :