Skip to content

Commit 5499c37

Browse files
authored
Merge pull request #20 from Shopify/fix-makefile
Ensure Makefile is written before exit
2 parents 82ed88d + ab51131 commit 5499c37

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

extconf.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def to_mib(bytes)
3838
end
3939
end
4040

41+
File.write("Makefile", <<~MAKEFILE)
42+
install:
43+
\t@echo "binaryen-rb does not need to be installed"
44+
MAKEFILE
45+
4146
unless File.exist?("#{__dir__}/vendor/#{ruby_platform}")
4247
log("[warning] no vendor directory found for #{ruby_platform}, cannot use binaryen-rb on this platform yet")
4348
exit
@@ -67,9 +72,4 @@ def to_mib(bytes)
6772
end
6873
end
6974

70-
File.write("Makefile", <<~MAKEFILE)
71-
install:
72-
\t@echo "binaryen-rb does not need to be installed"
73-
MAKEFILE
74-
7575
log("[info] done (#{to_mib(total_saved)} MiB saved)")

lib/binaryen/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

33
module Binaryen
4-
VERSION = "1.1.6.14"
4+
VERSION = "1.1.6.15"
55
BINARYEN_VERSION = "version_116"
66
end

0 commit comments

Comments
 (0)