Skip to content
Snippets Groups Projects
Unverified Commit 73df5891 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #7283 from claui/fix-make-tmpfile

Ensure TMPDIR is set for Xcode’s `make`
parents 5b775afe 29538c89
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment