aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
AgeCommit message (Collapse)Author
2017-04-30Use `PATH#select`.Markus Reiter
2017-04-30Rename `PATH#validate` to `PATH#existing`.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-04-30Remove `Array#to_path_s`.Markus Reiter
2017-04-30Use `to_path_s` for `determine_pkg_config_libdir`.Markus Reiter
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
2017-04-22super: re-add set_cpu_flags.Mike McQuaid
It's used by ENV.fortran. Fixes https://github.com/Homebrew/brew/issues/2530 Fixes https://github.com/Homebrew/homebrew-science/issues/5485
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2017-03-17Merge pull request #2279 from sjackman/determine_pathMike McQuaid
determine_path: Fix tests FormulaUnavailableError
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-03-07determine_path: Fix tests FormulaUnavailableErrorShaun Jackman
Fix the brew tests error: InstallTests#test_a_basic_install: FormulaUnavailableError: No available formula with the name "gcc" Library/Homebrew/formulary.rb:231:in `get_formula' Library/Homebrew/formulary.rb:259:in `factory' Library/Homebrew/extend/ENV/shared.rb:287:in `gcc_version_formula' Library/Homebrew/extend/ENV/super.rb:124:in `determine_path' Library/Homebrew/extend/ENV/super.rb:44:in `setup_build_environment' Library/Homebrew/build.rb:87:in `install' Library/Homebrew/build.rb:201:in `<main>'
2017-02-21Merge pull request #1948 from sjackman/gnu-gccMike McQuaid
gcc_version_formula: Use gcc@4.x rather than gcc4x
2017-02-12rubocop: trailing comma in multiline method callsAlyssa Ross
Discussed in https://github.com/Homebrew/brew/pull/1987/files#r100693581. This was originally ommitted because it wasn't compatible with Ruby 1.8. (See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971).
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-12-31ENV/super: fix set_cpu_flags stub.Mike McQuaid
It should accept arguments. Fixes https://github.com/Homebrew/homebrew-core/issues/8362
2016-12-30ENV: deprecate old methods.Mike McQuaid
These should have been deprecated long ago but we didn’t really have the necessary framework to do so.
2016-11-13No if/unless-modifier on multiline blocks.Markus Reiter
2016-11-13Use guard clauses.Markus Reiter
2016-10-22Update Rubocop style.Mike McQuaid
Another look at the current Rubocop rules and how they fit with our existing and desired future style. Almost all of these changes were automatic. Split some rules between formulae/brew where brew doesn't have millions of cases that need fixed.
2016-09-24RuboCop: Style/AccessorMethodNameMarkus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-13extend/ENV/super: fix Rubocop warnings.Mike McQuaid
2016-09-13extend/ENV/std: fix Rubocop warnings.Mike McQuaid
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-17Document 'w' CCCFG flagTim D. Smith
2016-08-17ENV/super: use Hardware::CPU.is_32_bit?Xu Cheng
`Hardware.is_32_bit?` is deprecated.
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-07-15super: remove effective_sysroot.Mike McQuaid
No longer needed in `super.rb` after it was moved to `os/mac`.
2016-07-15super: migrate xml2 cmake to mac/superDominyk Tiller
Looks like it was accidentally left behind (?)
2016-07-13superenv: restore HOMEBREW_PREFIX/libDominyk Tiller
2016-07-12superenv: port to generic OS. (#457)Mike McQuaid
2016-07-12stdenv: port to generic OS. (#456)Mike McQuaid
2016-07-06development_tools: add installed? method. (#455)Mike McQuaid
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-22Remove LLVM-GCC support. (#252)Mike McQuaid
At this point it's never a good compiler to use so let's just remove it.
2016-05-08Make development tools code cross-platform.Mike McQuaid
2016-04-22Explicitly list -arch in LDFLAGS on LeopardMisty De Meo
2016-04-22Set -faltivec in CFLAGS on TigerMisty De Meo
Setting -mcpu and -mtune on Tiger with gcc-4.2 exposes a bug in one of the system headers, causing certain builds to fail. This can be fixed by adding -faltivec to CFLAGS. See: http://trac.macports.org/ticket/34213
2016-04-21stdenv: stop setting ACLOCAL_PATHMisty De Meo
2016-04-13superenv: fix formula prefix path to consider revisionsAndrew Janke
Old logic doesn't include revision. This fixes that, and passes the whole formula prefix path to avoid duplicating the path-construction logic. Closes #80. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-13superenv: allow paths under self's kegAndrew Janke
Fixes build error in Homebrew/homebrew-core#100. Closes #63. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-04superenv: filter -I/-L paths on dependenciesMisty De Meo
Previously, superenv did not try to filter -I or -L flags based on the list of requested dependencies; as a result, buildsystems which opportunistically discover Homebrew-installed libraries were able to link against them even under superenv. This adds a list of all requested dependencies to the superenv environment, and compares all -I and -L flags against those; any Cellar and opt paths found which resolve to unrequested dependencies are filtered out.