Merge pull request #7283 from claui/fix-make-tmpfile
Ensure TMPDIR is set for Xcode’s `make`
This commit is contained in:
commit
73df5891ef
@ -44,6 +44,10 @@ module Homebrew
|
||||
ENV["GEM_HOME"] = gem_home
|
||||
ENV["GEM_PATH"] = ENV["GEM_HOME"]
|
||||
|
||||
# Set TMPDIR so Xcode's `make` doesn't fall back to `/var/tmp/`,
|
||||
# which may be not user-writable.
|
||||
ENV["TMPDIR"] = ENV["HOMEBREW_TEMP"]
|
||||
|
||||
# Make RubyGems notice environment changes.
|
||||
require "rubygems"
|
||||
Gem.clear_paths
|
||||
|
Loading…
x
Reference in New Issue
Block a user