Merge pull request #2890 from Homebrew/revert-2877-fix_fileutils_make

Revert "FileUtils.make: don't bypass superenv"
This commit is contained in:
Mike McQuaid 2017-07-12 11:36:10 +01:00 committed by GitHub
commit 8d7f66e520
2 changed files with 2 additions and 9 deletions

View File

@ -111,16 +111,10 @@ module FileUtils
# path to the actually-installed make on Tiger or older.
def make(*args)
if Utils.popen_read("/usr/bin/make", "--version").match(/Make (\d\.\d+)/)[1] > "3.80"
make_path = "/usr/bin/make"
system "/usr/bin/make", *args
else
make = Formula["make"].opt_bin/"make"
make_path = make.exist? ? make.to_s : (Formula["make"].opt_bin/"gmake").to_s
end
if superenv?
make_name = File.basename(make_path)
system({ "MAKE" => make_name }, "make", *args)
else
system make_path, *args
end
end

View File

@ -1,5 +1,4 @@
#!/bin/bash
export MAKE=${MAKE:-make}
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
exec xcrun $MAKE "$@"
exec xcrun make "$@"