cucumber-cpp: fix test on Mojave (#47035)

This commit is contained in:
Bo Anderson 2019-11-21 21:08:27 +00:00 committed by FX Coudert
parent ccb31c43f2
commit 5d02fe0210

View file

@ -33,7 +33,10 @@ class CucumberCpp < Formula
test do
ENV["GEM_HOME"] = testpath
ENV["BUNDLE_PATH"] = testpath
if MacOS.version == :high_sierra
if MacOS.version >= :mojave && MacOS::CLT.installed?
ENV.delete("CPATH")
ENV["SDKROOT"] = MacOS::CLT.sdk_path(MacOS.version)
elsif MacOS.version == :high_sierra
ENV.delete("CPATH")
ENV.delete("SDKROOT")
end