aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-01 11:36:44 -0700
committerAdam Vandenberg2013-08-01 20:12:23 -0700
commit27c53e5ba81fcbb964c53602aeeb577febe0559d (patch)
tree2bfa412686ab9c7047b957cb764f6144c0dcaed9 /Library/Homebrew
parentea3861d296da4d1b5bdd08af8a7f34ec4b99d7b1 (diff)
downloadbrew-27c53e5ba81fcbb964c53602aeeb577febe0559d.tar.bz2
Document superenv HOMEBREW_CCFG flags
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/superenv.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb
index b15d40f6b..dfa6b2610 100644
--- a/Library/Homebrew/superenv.rb
+++ b/Library/Homebrew/superenv.rb
@@ -63,6 +63,20 @@ class << ENV
ENV['CMAKE_LIBRARY_PATH'] = determine_cmake_library_path
ENV['ACLOCAL_PATH'] = determine_aclocal_path
+ # The HOMEBREW_CCCFG ENV variable is used by the ENV/cc tool to control
+ # compiler flag stripping. It consists of a string of characters which act
+ # as flags. Some of these flags are mutually exclusive.
+ #
+ # u - A universal build was requested
+ # 3 - A 32-bit build was requested
+ # b - Installing from a bottle
+ # i - Installing from a bottle on Intel
+ # 6 - Installing from a bottle on 64-bit Intel
+ #
+ # On 10.8 and newer, these flags will also be present:
+ # s - apply fix for sed's Unicode support
+ # a - apply fix for apr-1-config path
+
# Homebrew's apple-gcc42 will be outside the PATH in superenv,
# so xcrun may not be able to find it
if ENV['HOMEBREW_CC'] == 'gcc-4.2'
@@ -75,7 +89,7 @@ class << ENV
append 'HOMEBREW_CCCFG', "u", ''
end
- # m32 on superenv does not add any flags. It prevents "-m32" from being erased.
+ # m32 on superenv does not add any CC flags. It prevents "-m32" from being erased.
def m32
append 'HOMEBREW_CCCFG', "3", ''
end