From 7e9f00f34f4d89c749879872b36fa2c8bbf1d4c3 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sun, 19 Nov 2023 01:37:19 +0000 Subject: [PATCH] [wasm] Build baseruby from the same revision for cross-compiling > Note that on cross compiling BASERUBY should be the same version of the building ruby. > https://github.com/ruby/ruby/wiki/Developer-How-To#prerequisite --- .github/workflows/wasm.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 8028faf70a..ed9902f966 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -102,10 +102,20 @@ jobs: run: | echo "WASI_SDK_PATH=/opt/wasi-sdk" >> $GITHUB_ENV + - name: Build baseruby + run: | + set -ex + mkdir ../baseruby + pushd ../baseruby + ../src/configure --prefix=$PWD/install + make + make install + - name: Run configure run: | ../src/configure \ --host wasm32-unknown-wasi \ + --with-baseruby=$PWD/../baseruby/install/bin/ruby \ --with-static-linked-ext \ --with-ext=bigdecimal,cgi/escape,continuation,coverage,date,dbm,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,fiber,gdbm,json,json/generator,json/parser,nkf,objspace,pathname,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor \ LDFLAGS=" \