Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/build-gems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: fetch
with:
supported-ruby-platforms: |
exclude: [arm-linux, x64-mingw32]
exclude: [arm-linux, x64-mingw32, aarch64-mingw-ucrt]
stable-ruby-versions: |
exclude: [head]

Expand Down
11 changes: 11 additions & 0 deletions lib/ruby_wasm/build/product/crossruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,17 @@ def configure_args(build_triple, toolchain)
wasi_sdk_path = @toolchain
args << %Q(WASMOPT=#{wasi_sdk_path.wasm_opt})
args << %Q(WASI_SDK_PATH=#{wasi_sdk_path.wasi_sdk_path})
# NOTE: wasi-libc 22 and later defines stubs for fchmod and chmod
# but they just return ENOTSUP, and ruby's configure doesn't check
# the runtime behavior. So we need to tell configure that
# these functions are not available.
# https://github.com/WebAssembly/wasi-libc/pull/463
args << %Q(ac_cv_func_fchmod=no)
args << %Q(ac_cv_func_chmod=no)
# TODO: wasi-libc 22 and later started using musl's realpath impl but
# it broke Kernel#require on @bjorn3/browser_wasi_shim setup for some
# reason. So we disable it for now.
args << %Q(ac_cv_func_realpath=no)
when "wasm32-unknown-emscripten"
ldflags.concat(%w[-s MODULARIZE=1])
env_emcc_ldflags = ENV["RUBY_WASM_EMCC_LDFLAGS"] || ""
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_wasm/build/toolchain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class WASISDK < Toolchain
def initialize(
wasi_sdk_path = ENV["WASI_SDK_PATH"],
build_dir: nil,
version_major: 21,
version_major: 22,
version_minor: 0,
binaryen_version: 108
)
Expand Down