aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/shared.rb
AgeCommit message (Collapse)Author
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes #35531. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-17Unset LIBRARY_PATH before buildsJack Nagel
See https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html Closes Homebrew/homebrew-versions#592.
2014-09-18Call reset in the superclass implementation of setup_build_environmentJack Nagel
2014-09-18Make --cc override the compiler selectorJack Nagel
2014-09-18Replace CompilerQueue with predetermined priority listsJack Nagel
2014-09-18Remove fails_with? from the formula instanceJack Nagel
2014-09-07Clear GOBIN in environment setupJack Nagel
Closes #32014.
2014-08-03Add another TODOJack Nagel
2014-08-03Remove an is_a checkJack Nagel
2014-07-18Check nil? || empty? instead of to_s.empty?Jack Nagel
2014-07-18Drop pointless to_s callJack Nagel
2014-07-13No need to cache lookup that is only done onceJack Nagel
2014-07-02Move constants so we don't have to load all of ENV to get themJack Nagel
2014-06-22Use a more descriptive variable nameJack Nagel
2014-06-22Move the compiler-selecting methods to ENV/sharedShaun Jackman
Closes #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 #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 #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 #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 #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 #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 #26338. Closes #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 #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 #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