Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.11] gh-100340: Allows -Wno-int-conversion for wasm (GH-100341) #106066

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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