Skip to content

Commit 5f448de

Browse files
call define_task for libyaml and zlib before CrossRuby#with_XXX
1 parent 1e18cf7 commit 5f448de

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/ruby_wasm/rake_task.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ def initialize(
5858
@source,
5959
@toolchain
6060
)
61+
yield self if block_given?
62+
63+
@products_to_define.each(&:define_task)
64+
6165
@crossruby.with_libyaml @libyaml
6266
@crossruby.with_zlib @zlib
6367

64-
yield self if block_given?
65-
66-
add_product @crossruby
67-
define
68+
@crossruby.define_task
6869
end
6970

7071
private
@@ -78,7 +79,4 @@ def add_product(product)
7879
product
7980
end
8081

81-
def define
82-
@products_to_define.each(&:define_task)
83-
end
8482
end

0 commit comments

Comments
 (0)