aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/shared.rb
AgeCommit message (Collapse)Author
2014-06-22Move the compiler-selecting methods to ENV/sharedShaun Jackman
Closes Homebrew/homebrew#30210. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-03Use a || bJack Nagel
2014-06-03Treat HOMEBREW_CC the same as --ccShaun Jackman
Closes Homebrew/homebrew#29762. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03HOMEBREW_CC: Remove COMPILER_ALIASESShaun Jackman
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-26Share code for sanitizing ENV between both build environmentsJack Nagel
2014-05-19Remove deprecated --use-{gcc,llvm,clang}Jack Nagel
Closes Homebrew/homebrew#29380.
2014-05-18Remove hardcoded reference to ENVJack Nagel
2014-05-18Add accessor for HOMEBREW_CCJack Nagel
2014-05-18ENV.cc= and ENV.cxx= are privateJack Nagel
2014-05-18Use a case statementJack Nagel
2014-05-14Allow disabling arch flag filteringJack Nagel
Closes Homebrew/homebrew#17352.
2014-05-06ENV/shared: fix gcc versions edge case.Mike McQuaid
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-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-29ENV/shared: use homebrew/versions GCC if installedMike McQuaid
Closes Homebrew/homebrew#28820.
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-04Clean up some concatentation inside interpolationJack Nagel
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-04ENV: add method to prepend and create a PATH.Mike McQuaid
2013-12-03Make CompilerSelectionError an InstallationErrorJack Nagel
Fixes Homebrew/homebrew#19962.
2013-12-02Fix typoJack Nagel
2013-12-02Yielded value is not usedJack Nagel
2013-11-27Require Formula before using itJack Nagel
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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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