aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/shared.rb
AgeCommit message (Collapse)Author
2013-10-16Allow older non-Apple GCCs to build thingsMisty De Meo
2013-09-28Move ld64 into SharedEnvExtensionMisty De Meo
Superenv is being tested on Xcode 3.1.4, so this needs to be supported in both ENVs, not just stdenv.
2013-09-19ENV: Ensure @compiler is setMisty De Meo
If @compiler isn't set/checked by ENV.compiler and the ENV.clang/etc. methods, ENV.compiler may return unexpected results after fails_with picks a fallback compiler. See #22674.
2013-09-17Move CompilerSelector logic into build env setupMisty De Meo
This moves the CompilerSelector fails_with logic into the build environment setup, making the compiler selection available before performing actions that depends on knowing what the compiler is, e.g. setting up PATH. ENV.setup_build_environment now optionally takes a Formula argument to provide the information necessary to do the fails_with, and the new ENV.validate_cc! extracts the fails_with logic from Build.install.
2013-09-03ENV: convert values to strings in cc settersJack Nagel
2013-09-01Remove HOMEBREW_CC warning from ENV.compilerMisty De Meo
ENV.compiler is called outside setting up the build environment, where values unsupported for user input might have been specified - for example, GNU GCC executables.
2013-09-01Provide reusable GNU GCC constants in ENVMisty De Meo
2013-09-01Experimental support for non-Apple GCCsMisty De Meo
2013-08-30ENV: only set fortran flags in one placeJack Nagel
2013-08-30ENV: use fc accessorJack Nagel
2013-08-30Fix conditional in ENV.fortranJack Nagel
2013-08-30ENV: add cc and cxx settersJack Nagel
2013-08-30Simplify handling custom FCFLAGSJack Nagel
2013-08-30Remove PATH hack from ENV.fortranJack Nagel
2013-08-30Unify compiler selection logicMisty De Meo
This unifies the logic for selecting a compiler between superenv and stdenv. A variation of superenv's `determine_cc`, which now returns a symbol, has been moved into the shared ENV extension. Stdenv uses the result of this directly (as it's always used symbols), while superenv translates that back into a compiler string. This also has the effect of disabling HOMEBREW_USE_(gcc|llvm|clang) in stdenv, which have already been marked as deprecated for some time, and enables the HOMEBREW_CC= environment variable syntax from superenv in stdenv.
2013-08-30Add --cc= syntax for selecting compilersMisty De Meo
2013-08-29Remove default values from ENV.{cc,cxx}Jack Nagel
Closes #22138.
2013-08-26Only perform coercion to string once in ENV.{append,prepend}Jack Nagel
2013-08-19Use ENV.prepend_pathJack Nagel
2013-08-19Add ENV.append_pathJack Nagel
2013-08-19Fix typoJack Nagel
2013-08-19Use File::PATH_SEPARATOR globally instead of ':'Amos Wenger
On Unix, the path separator is ':', whereas on Windows, it is ';'. This is the first of a series of patch to bring macbrew's and winbrew's codebases closer together. The main places the magic constant ':' was being used were: - the $PATH environment variable - CMAKE-related environment variables - pkg-config related environment variables Closes #21921. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19More robust implementation of ENV.with_build_environmentJack Nagel
2013-08-19Rename HomebrewEnvExtension to StdenvJack Nagel