Skip to content

Commit

Permalink
[3.11] gh-100340: Allows -Wno-int-conversion for wasm (GH-100341) (#1…
Browse files Browse the repository at this point in the history
…06066)

(cherry picked from commit 75c8133)

Co-authored-by: Kushal Das <mail@kushaldas.in>
  • Loading branch information
miss-islington and kushaldas committed Jun 28, 2023
1 parent 2cce465 commit 966e0f6
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
@@ -0,0 +1,2 @@
Allows -Wno-int-conversion for wasm-sdk 17 and onwards, thus enables
building WASI builds once against the latest sdk.
3 changes: 3 additions & 0 deletions Tools/wasm/config.site-wasm32-wasi
Expand Up @@ -40,3 +40,6 @@ ac_cv_header_netpacket_packet_h=no
# disable accept for WASM runtimes without sock_accept
#ac_cv_func_accept=no
#ac_cv_func_accept4=no

# Disable int-conversion for wask-sdk as it triggers an error from version 17.
ac_cv_disable_int_conversion=yes
38 changes: 38 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -2246,6 +2246,10 @@ yes)
AS_VAR_IF([ac_cv_disable_unused_parameter_warning], [yes],
[CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"])

PY_CHECK_CC_WARNING([disable], [int-conversion])
AS_VAR_IF([ac_cv_disable_int_conversion], [yes],
[CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"])

PY_CHECK_CC_WARNING([disable], [missing-field-initializers])
AS_VAR_IF([ac_cv_disable_missing_field_initializers_warning], [yes],
[CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"])
Expand Down

0 comments on commit 966e0f6

Please sign in to comment.