File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
lib/ruby_wasm/build_system/product Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -125,18 +125,19 @@ def define_task
125
125
sh %Q(ruby #{ extinit_c_erb } #{ @user_exts . map ( &:name ) . join ( " " ) } | #{ toolchain . cc } -c -x c - -o #{ extinit_obj } )
126
126
end
127
127
128
+ install_dir = File . join ( build_dir , "install" )
128
129
install =
129
- task " #{ name } -install" => [ @configure , extinit_task , dest_dir ] do
130
- next if File . exist? ( " #{ dest_dir } -install" )
131
- sh "make install DESTDIR=#{ dest_dir } -install " , chdir : build_dir
130
+ task install_dir => [ @configure , extinit_task , dest_dir ] do
131
+ next if File . exist? ( install_dir )
132
+ sh "make install DESTDIR=#{ install_dir } " , chdir : build_dir
132
133
end
133
134
134
135
desc "Build #{ name } "
135
136
task name => [ @configure , install , dest_dir ] do
136
137
artifact = "rubies/ruby-#{ name } .tar.gz"
137
138
next if File . exist? ( artifact )
138
139
rm_rf dest_dir
139
- cp_r " #{ dest_dir } -install" , dest_dir
140
+ cp_r install_dir , dest_dir
140
141
@user_exts . each { |ext | ext . do_install_rb ( self ) }
141
142
sh "tar cfz #{ artifact } -C rubies #{ name } "
142
143
end
You can’t perform that action at this time.
0 commit comments