Skip to content

Commit

Permalink
Enable the exception option
Browse files Browse the repository at this point in the history
This is to cause an immediate build error if the zlib download fails.
  • Loading branch information
ledsun committed Aug 25, 2023
1 parent 2cf7bc4 commit 3c4930c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ruby_wasm/build_system/product/zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def build
FileUtils.rm_rf product_build_dir

system "curl -L https://zlib.net/zlib-#{ZLIB_VERSION}.tar.gz | tar xz",
chdir: File.dirname(product_build_dir)
chdir: File.dirname(product_build_dir),
exception: true

system "#{tools_args.join(" ")} ./configure --static",
chdir: product_build_dir
Expand Down

0 comments on commit 3c4930c

Please sign in to comment.