aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
AgeCommit message (Collapse)Author
2014-05-13Use a case statementJack Nagel
2014-05-13Make sure the path arrays only contain stringsJack Nagel
2014-05-13No need to augment path on Xcode-only 10.9Jack Nagel
2014-05-13Move method to prepare for future changesJack Nagel
2014-05-13Future-proof this conditionalJack Nagel
2014-05-12clean up X11 conditionalsJack Nagel
2014-05-10Ensure HOMEBREW_ARCHFLAGS is always a stringJack Nagel
2014-05-08Always use stub tools in /usr/bin on 10.9Jack Nagel
2014-05-06ENV/shared: fix gcc versions edge case.Mike McQuaid
2014-05-06ENV/std: use full paths to gcc versions.Mike McQuaid
This is consistent with how e.g. `gcc-4.2` is handled. This means e.g. `ghc` can find `gcc-4.8` at runtime. Fixes Homebrew/homebrew#28934.
2014-05-06shared: refactor gcc_version_formula.Mike McQuaid
Avoid throwing unnecessary exceptions by checking for paths existing and creating formulae as late as possible. Additionally use instance variables for some caching.
2014-05-06shared: don't use Formula.factory unnecessarily.Mike McQuaid
Instead check if the path exists by using opt.
2014-05-01Xcode-only path adjustments should be the same in both environmentsJack Nagel
2014-05-01Move xctoolchain_path to Xcode module, where it belongsJack Nagel
2014-04-30Superenv: determine_optflags should return a stringMisty De Meo
This is saved in HOMEBREW_OPTFLAGS and later mutated by ENV.universal_binary, so if this returns nil the sub will fail.
2014-04-30ENV/shared: handle untapped e.g. gcc48 formula.Mike McQuaid
In this case we need to handle the throwing on an exception when attempting to initialize the gcc48 Formula object. This initialization should be unnecessary if the core GCC is already installed and rescued if not.
2014-04-29Drop obsolete compiler fallback in stdenvJack Nagel
This code originated in a slightly different form in 8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad: https://github.com/Homebrew/homebrew/blob/8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad/Library/Homebrew/extend/ENV.rb#L30-L32 Back then, MacOS.default_compiler could return nil, which meant ENV.compiler could do the same. This code was carried forward as the surrounding code changed. At this point it should be unreachable.
2014-04-29ENV/shared: use homebrew/versions GCC if installedMike McQuaid
Closes Homebrew/homebrew#28820.
2014-04-29Use MacOS.locate and delete wrong commentJack Nagel
2014-04-29Remove comment that no longer reflects adjacent codeJack Nagel
2014-04-29We don't use -Qunused-arguments anymoreJack Nagel
2014-04-29ENV.{cc,cxx} setters already set OBJC and OBJCXXJack Nagel
2014-04-29Make ENV.O4 a no-opJack Nagel
On older Apple compilers "-O4" is known to cause build errors. On recent clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get the old behavior.
2014-04-23Support core GCC formula as a GCC compiler.Mike McQuaid
It is activated by the same mechanism as the Homebrew/versions compilers which now check if the GCC formula uses the same, correct version. References Homebrew/homebrew#28418.
2014-04-23shared: don't warn about non-Apple compilers now.Mike McQuaid
2014-04-22Only directories are candidates for superenv binJack Nagel
2014-04-20Remove obsolete DEVELOPER_DIR hacksJack Nagel
These days Homebrew refuses to do anything if the xcode-select path is busted, so this workaround is unnecessary.
2014-04-04Clean up some concatentation inside interpolationJack Nagel
2014-03-28Add ENV.refurbish_args helperMisty De Meo
Rationale: our arg refurbishment is normally only turned on when called via the `make` wrapper, for compatibility reasons. However, there are numberous places we'd like this to be turned on elsewhere, like software that builds via `python setup.py` where bad flags from the system python can be pulled in. This helper appends 'O' to CCCFG, which enables refurbishment for all calls of the compiler shims.
2014-03-22Remove unnecessary swearing.Mike McQuaid
2014-03-08Revert "ENV: request no byte code Python when bottling."Mike McQuaid
This reverts commit b603c96276cf7fe1417d2355eebc47fb15da0b8c.
2014-03-02ENV: request no byte code Python when bottling.Mike McQuaid
2014-02-19Fix building universal binaries on 32-bit CPUscadrpear
[jn: style, update comment] Closes Homebrew/homebrew#25728. Fixes Homebrew/homebrew#26834. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-18Stop exporting HOMEBREW_VERBOSE to build environmentJack Nagel
This flag no longer affects the output of the compiler wrappers, since everything is buffered by the build process rather than each individual tool. Additionally, this is a user-facing knob that affects ARGV.verbose?, and the combination of these two issues broke the --quieter feature.
2014-02-02Correctly find Homebrew-installed fortranCamillo Lugaresi
Fixes Homebrew/homebrew#26338. Closes Homebrew/homebrew#26352. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-01-27Revert "Add python superenv wrapper"Misty De Meo
This reverts commit 90e22e389c539b25fe7864645bfe5e2a9ce7452f.
2014-01-26Add python superenv wrapperMisty De Meo
Closes Homebrew/homebrew#26140. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-01-11Fix typoJack Nagel
2014-01-04ENV: add method to prepend and create a PATH.Mike McQuaid
2014-01-04ENV.gcc: remove raiseMisty De Meo
This raise happened in no other ENV methods, and isn't really necessary since fails_with guards against this method actually being called unless gcc-4.2 is actually installed.
2014-01-04Recommit ENV changesMisty De Meo
2014-01-04Revert "stdenv: fix self.cc check"Mike McQuaid
This reverts commit 0e1d52c0d3945ae0ac69383c7734e425b7fbf8f1.
2014-01-04Revert "stdenv: set correct compiler symbol for gcc 4.0"Mike McQuaid
This reverts commit f4dc5614953b3b90acc28c83262d56587b0616b1.
2014-01-03stdenv: set correct compiler symbol for gcc 4.0Misty De Meo
2014-01-03stdenv: fix self.cc checkMisty De Meo
Since ENV.cc/cxx are accessors to ENV, any values being passed through are coerced into strings, which means that a nil `ENV.cc` is actually an empty string - which isn't considered to be false in Ruby. Fixes mistydemeo/tigerbrew#161. Fixes mistydemeo/tigerbrew#135.
2013-12-27superenv: don't accidentally filter out HOMEBREW_TEMPJack Nagel
Fixes Homebrew/homebrew#25471.
2013-12-09Silence more warningsJack Nagel
2013-12-06Help autoconf find m4 on Xcode-only systemsJack Nagel
Closes Homebrew/homebrew#24904.
2013-12-03Make CompilerSelectionError an InstallationErrorJack Nagel
Fixes Homebrew/homebrew#19962.
2013-12-02Fix typoJack Nagel