File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,10 @@ def configure_args(build_triple, toolchain)
298
298
args << %Q(WASI_SDK_PATH=#{ wasi_sdk_path . wasi_sdk_path } )
299
299
when "wasm32-unknown-emscripten"
300
300
ldflags . concat ( %w[ -s MODULARIZE=1 ] )
301
+ env_emcc_ldflags = ENV [ "RUBY_WASM_EMCC_LDFLAGS" ] || ""
302
+ unless env_emcc_ldflags . empty?
303
+ ldflags << env_emcc_ldflags
304
+ end
301
305
else
302
306
raise "unknown target: #{ target } "
303
307
end
Original file line number Diff line number Diff line change @@ -156,6 +156,10 @@ def build_config(options)
156
156
case options [ :profile ]
157
157
when "full"
158
158
config [ :default_exts ] = RubyWasm ::Packager ::ALL_DEFAULT_EXTS
159
+ env_additional_exts = ENV [ "RUBY_WASM_ADDITIONAL_EXTS" ] || ""
160
+ unless env_additional_exts . empty?
161
+ config [ :default_exts ] += "," + env_additional_exts
162
+ end
159
163
when "minimal"
160
164
config [ :default_exts ] = ""
161
165
else
You can’t perform that action at this time.
0 commit comments