summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-04-30 20:26:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2026-05-13 12:02:15 +0900
commitbd2db27f3f67b0aadd74d009174ab7eef726a9e1 (patch)
treea06e34218622ca22c29ca0b26bacb985fe955d0d
parentc1ab2a499751b69363fee31557a42ed09cf608b4 (diff)
wasm: Clean up configure arguments
Update statically-linked extension list.
-rw-r--r--.github/workflows/wasm.yml49
1 files changed, 35 insertions, 14 deletions
diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml
index ac0015d03d..34016815a5 100644
--- a/.github/workflows/wasm.yml
+++ b/.github/workflows/wasm.yml
@@ -105,10 +105,13 @@ jobs:
echo "WASI_SDK_PATH=/opt/wasi-sdk" >> $GITHUB_ENV
- name: Build baseruby
+ id: baseruby
run: |
set -ex
mkdir ../baseruby
pushd ../baseruby
+ echo "ruby=$PWD/install/bin/ruby" >> $GITHUB_OUTPUT
+ echo "dump_ast=$PWD/dump_ast" >> $GITHUB_OUTPUT
../src/configure --prefix=$PWD/install
make
make install
@@ -120,20 +123,38 @@ jobs:
working-directory: src
- name: Run configure
- run: |
- ../src/configure \
- --host wasm32-unknown-wasi \
- --with-baseruby=$PWD/../baseruby/install/bin/ruby \
- --with-dump-ast=$PWD/../baseruby/dump_ast \
- --with-static-linked-ext \
- --with-ext=cgi/escape,continuation,coverage,date,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,json,json/generator,json/parser,objspace,pathname,rbconfig/sizeof,ripper,stringio,strscan,monitor \
- LDFLAGS=" \
- -Xlinker --stack-first \
- -Xlinker -z -Xlinker stack-size=16777216 \
- " \
- optflags="${{ matrix.entry.optflags }}" \
- debugflags="${{ matrix.entry.debugflags }}" \
- wasmoptflags="${{ matrix.entry.wasmoptflags }} ${{ matrix.entry.debugflags }}"
+ run: >-
+ ../src/configure
+ --host wasm32-unknown-wasi
+ --with-baseruby="${{ steps.baseruby.outputs.ruby }}"
+ --with-dump-ast="${{ steps.baseruby.outputs.dump_ast }}"
+ --with-static-linked-ext
+ --with-ext=${EXTS// /,}
+ LDFLAGS="
+ -Xlinker --stack-first
+ -Xlinker -z -Xlinker stack-size=16777216
+ "
+ optflags="${{ matrix.entry.optflags }}"
+ debugflags="${{ matrix.entry.debugflags }}"
+ wasmoptflags="${{ matrix.entry.wasmoptflags }} ${{ matrix.entry.debugflags }}"
+ env:
+ EXTS:
+ cgi/escape
+ continuation
+ coverage
+ date
+ digest
+ digest/*
+ erb/escape
+ etc
+ fcntl
+ json
+ json/*
+ objspace
+ rbconfig/sizeof
+ ripper
+ stringio
+ strscan
# miniruby may not be built when cross-compling
- run: make mini ruby