Skip to content

Commit c5403c1

Browse files
Add local source variant for development
1 parent bc83b8d commit c5403c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ruby_wasm/build_system/product/ruby_source.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def fetch
2828
system "git remote add origin #{repo_url}", chdir: src_dir
2929
system "git fetch --depth 1 origin #{@params[:rev]}", chdir: src_dir
3030
system "git checkout #{@params[:rev]}", chdir: src_dir
31+
when "local"
32+
FileUtils.cp_r @params[:src], src_dir
3133
else
3234
raise "unknown source type: #{@params[:type]}"
3335
end

0 commit comments

Comments
 (0)