aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/shared.rb
AgeCommit message (Collapse)Author
2017-04-30Use `PATH#select`.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-03-11env: make prepend_path ignore system pathsilovezfs
`ENV.prepend_path "PATH", which("emacs").dirname` in the emacs requirement was causing us to end up invoking /usr/bin/clang instead of /usr/local/Homebrew/Library/Homebrew/shims/super/clang.
2017-02-11gcc_version_formula: Use gcc@4.x rather than gcc4xShaun Jackman
2017-01-16Unset GREP_OPTIONS.Mike McQuaid
Users may have this set, breaking grep's output. Fixes #1430.
2016-11-13No if/unless-modifier on multiline blocks.Markus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-13extend/ENV/shared: fix Rubocop warnings.Mike McQuaid
2016-08-22Make -no_weak_imports opt-in.Mike McQuaid
The experiment to add `-no_weak_imports` unconditionally has been a bit of a failure. It's broken more than it's fixed and I don't think we can have this as a default for Xcode 8. Add `ENV.no_weak_imports` to be used by formulae authors and make `ENV.no_weak_imports a no-op (for now). We may reconsider this behaviour in future.
2016-08-17Add permit_weak_imports directiveTim D. Smith
Issue Homebrew/homebrew-core#3727 suggested we set -no_weak_imports for new versions of Xcode to ensure that e.g. building on 10.11 against the 10.12 SDK doesn't result in a situation where autotools thinks symbols exist that don't actually exist on the current platform. Further discussion in golang/go#16770 revealed that some packages require weak imports to build normally.
2016-08-16Add OS X-specific SharedEnvExtension.Mike McQuaid
2016-07-29Add missing development_tools requires.Mike McQuaid
2016-07-16Unify Version.create usageVlad Shablinsky
Substitue each Version.new and HeadVersion.new with Version.create to unify Version and HeadVersion instantiation among core code. Note that this does not relate to Mac::OS::Version class.
2016-06-16ENV: mark gcc-6 as supporting C++11 (#349)msbit
Add SharedEnvExtension#gcc_with_cxx11_support? to centralise the logic for checking whether a compiler is known to support C++11. Update logic to accept GCC 4.8 and above (including 6). Thereby also address oversight in #163 where support for GCC 6 was added without updating the C++11 compiler whitelist. Add tests for Superenv#cxx11. Closes #346.
2016-05-08Make development tools code cross-platform.Mike McQuaid
2016-02-20env/shared: ignore perl optsDominyk Tiller
In theory, letting these be set once wasn't an awful idea because it allows users choice on where Perl modules end up. In reality, as we've moved closer to sandboxing and at the same time accepted more perl binding options into formulae it has been exposed as something of a hellraiser. It's not that uncommon for Perl users to set a custom `INSTALL_BASE` in the ENV which means we end up with quite a few formula that fail hard with this sort of error: ``` Only one of PREFIX or INSTALL_BASE can be given. Not both. ``` The other common error, which we discovered via sandboxing, is that the Perl modules end up outside Homebrew's control which means we don't automatically remove them when the package is removed. Sandboxing blocks this, which means when we eventually move to enable that by default for users as well as CI it'll quickly become a prominent issue.
2015-12-23ENV: avoid misleading Fortran setup warningsMartin Afanasjew
Fixes Homebrew/homebrew#31156. Closes Homebrew/homebrew#47246. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2015-12-18env: add java_cache envDominyk Tiller
2015-12-10ENV: warn_if_universal_binaries_not_supportedRyan Hendrickson
Raise an error when attempting to create universal binaries with a GCC that can't do so. Closes Homebrew/homebrew#46630. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-09-28ENV#userpaths!: ensure Superenv.bin and opt path come at firstXu Cheng
This ensures that binaries in /usr/local/bin would not overwrite superenv. Closes Homebrew/homebrew#44376. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-12Accept "gcc" for --cc=gcc-5 even if not installedMisty De Meo
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-06favor flat_map over map...flattenXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-22Ask the exception for the formula nameJack Nagel
2015-06-22Ask the formula object for the opt pathJack Nagel
2015-06-21Simplify gcc_version_formulaJack Nagel
2015-06-21Inline variableJack Nagel
2015-06-21Eliminate special case for core gccJack Nagel
2015-06-21Less code in begin/rescue blockJack Nagel
2015-06-21Pass full match to warn_about_non_apple_gccJack Nagel
2015-06-19Move some constants from env to compiler constantsJack Nagel
2015-05-14Clear GOPATH and GOROOT in build environmentJack Nagel
Fixes Homebrew/homebrew#37936.
2015-05-08compilers: support gcc 5なつき
Closes Homebrew/homebrew#39470. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes Homebrew/homebrew#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 Homebrew/homebrew#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 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.