Skip to content

Commit

Permalink
build: Keep default extensions for older Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Mar 27, 2024
1 parent c77a370 commit 3bfe810
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/ruby_wasm/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def build_config(options)
config = { target: options[:target_triplet], src: compute_build_source(options) }
case options[:profile]
when "full"
config[:default_exts] = RubyWasm::Packager::ALL_DEFAULT_EXTS
config[:default_exts] = config[:src][:all_default_exts]
env_additional_exts = ENV["RUBY_WASM_ADDITIONAL_EXTS"] || ""
unless env_additional_exts.empty?
config[:default_exts] += "," + env_additional_exts
Expand Down Expand Up @@ -211,15 +211,18 @@ def self.build_source_aliases(root)
"head" => {
type: "github",
repo: "ruby/ruby",
rev: "master"
rev: "master",
all_default_exts: RubyWasm::Packager::ALL_DEFAULT_EXTS,
},
"3.3" => {
type: "tarball",
url: "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz"
url: "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz",
all_default_exts: "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,psych,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl",
},
"3.2" => {
type: "tarball",
url: "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz"
url: "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz",
all_default_exts: "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,psych,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl",
}
}

Expand Down

0 comments on commit 3bfe810

Please sign in to comment.