Skip to content

Commit

Permalink
Merge pull request #274 from ledsun/update_zlib
Browse files Browse the repository at this point in the history
Update zlib version to resolve build errors.
  • Loading branch information
ko1 authored Aug 25, 2023
2 parents d0e1445 + 3c4930c commit a7c09b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ruby_wasm/build_system/product/zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RubyWasm
class ZlibProduct < AutoconfProduct
attr_reader :target

ZLIB_VERSION = "1.2.13"
ZLIB_VERSION = "1.3"

def initialize(build_dir, target, toolchain)
@build_dir = build_dir
Expand Down 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 a7c09b8

Please sign in to comment.