File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/ruby_wasm/build_system/product Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def define_task(crossruby)
62
62
63
63
class CrossRubyProduct < BuildProduct
64
64
attr_reader :source , :toolchain , :build , :configure
65
- attr_accessor :user_exts
65
+ attr_accessor :user_exts , :wasmoptflags
66
66
67
67
def initialize (
68
68
params ,
@@ -81,6 +81,7 @@ def initialize(
81
81
@toolchain = toolchain
82
82
@dep_tasks = [ ]
83
83
@user_exts = user_exts
84
+ @wasmoptflags = nil
84
85
end
85
86
86
87
def define_task
@@ -229,6 +230,7 @@ def configure_args(build_triple, toolchain)
229
230
args << %Q(wasmoptflags="-O3 -g")
230
231
else
231
232
args << %Q(debugflags="-g0")
233
+ args << %Q(wasmoptflags="#{ wasmoptflags } ") if @wasmoptflags
232
234
end
233
235
args << "--disable-install-doc"
234
236
args
You can’t perform that action at this time.
0 commit comments