Skip to content

Commit

Permalink
fix(#2) build on macosx on Mojave
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Radyk committed Nov 22, 2018
1 parent b4d79cd commit ba06717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wrk2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class Wrk2 < Formula
depends_on "openssl"

def install
# Per https://luajit.org/install.html: If MACOSX_DEPLOYMENT_TARGET
# is not set then it's forced to 10.4, which breaks compile on Mojave.
ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version
system "make"
mv "wrk", "wrk2"
bin.install "wrk2"
Expand Down

0 comments on commit ba06717

Please sign in to comment.