File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed
lib/ruby_wasm/build/product Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,11 @@ def build(executor)
24
24
executor . mkdir_p product_build_dir
25
25
@source . build ( executor )
26
26
return if Dir . exist? ( install_dir )
27
- Dir . chdir ( product_build_dir ) do
28
- executor . system @source . configure_file ,
29
- "--prefix=#{ install_dir } " ,
30
- "--disable-install-doc"
31
- executor . system "make" , "install"
32
- end
27
+ executor . system @source . configure_file ,
28
+ "--prefix=#{ install_dir } " ,
29
+ "--disable-install-doc" ,
30
+ chdir : product_build_dir
31
+ executor . system "make" , "install" , chdir : product_build_dir
33
32
end
34
33
end
35
34
end
Original file line number Diff line number Diff line change @@ -72,18 +72,18 @@ def fetch(executor)
72
72
def build ( executor )
73
73
fetch ( executor ) unless File . exist? ( src_dir )
74
74
unless File . exist? ( configure_file )
75
- Dir . chdir ( src_dir ) do
76
- executor . system "ruby ",
77
- "tool/downloader.rb ",
78
- "-d ",
79
- "tool ",
80
- "-e ",
81
- "gnu ",
82
- "config.guess " ,
83
- "config.sub" or
84
- raise "failed to download config.guess and config.sub"
85
- executor . system "./autogen.sh" or raise "failed to run autogen.sh"
86
- end
75
+ executor . system "ruby" ,
76
+ "tool/downloader.rb ",
77
+ "-d ",
78
+ "tool ",
79
+ "-e ",
80
+ "gnu ",
81
+ "config.guess ",
82
+ "config.sub " ,
83
+ chdir : src_dir or
84
+ raise "failed to download config.guess and config.sub"
85
+ executor . system "./autogen.sh" , chdir : src_dir or
86
+ raise "failed to run autogen.sh"
87
87
end
88
88
end
89
89
end
You can’t perform that action at this time.
0 commit comments