aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
AgeCommit message (Collapse)Author
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.
2016-03-31Xcode 7 MACOSX_DEPLOYMENT_TARGET and SDK fixesilovezfs
SDK 10.10 isn't something that exists for Xcode 7, so stop looking for it and rely on MACOSX_DEPLOYMENT_TARGET instead. See PR Homebrew/homebrew#50137 Yosemite build failure Closes Homebrew/homebrew#50355. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-03-21add HOMEBREW_ENV_PATH internal variableXu Cheng
`Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
2016-03-19Revert "Avoid constructing paths by string interpolation"Tim D. Smith
This reverts commit 8c7f3d859e8f715b6c63e4fe75e7a636aee4167f.
2016-03-19Avoid constructing paths by string interpolationTim D. Smith
Closes Homebrew/homebrew#50154.
2016-03-13superenv: fix make_jobs regular expressionilovezfs
HOMEBREW_MAKE_JOBS can be a multidigit number. The regex should match the entire number not just the last digit. Closes Homebrew/homebrew#50016. Signed-off-by: Tim D. Smith <git@tim-smith.us>
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-12-07superenv: set SDKROOT, MACOSX_DEPLOYMENT_TARGETMisty De Meo
2015-11-17Stdenv: add note on possible future deprecationXu Cheng
Closes Homebrew/homebrew#46043. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-17Stdenv should be tagged as private rather deprecatedXu Cheng
2015-10-18remove unnecessary require statementsXu Cheng
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-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
add guard in Formula#file_modified? to prevent git popup add guard in Superenv.bin before calling MacOS::Xcode.version add guard against missing Xcode/CLT in Xcode.uncached_version return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-15Revert "work around missing __debug header in Xcode CLT 6.3"Tim D. Smith
Ding, dong, the witch is dead... This reverts commit fd5ca9ba16f5afc181364369210cb94e997a5a5e. Ref Homebrew/homebrew#38514, Homebrew/homebrew#38735. Closes Homebrew/homebrew#41843.
2015-08-06favor flat_map over map...flattenXu Cheng
2015-08-06more core file style updated by rubocopXu 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-06-18Pass formula objects, not strings, into the build environmentJack Nagel
2015-06-12Undocument return value of ENV.deparallelizeJack Nagel
It's not clear whether it returns MAKEFLAGS with or without -j<n>, and neither is particularly useful behavior, given you can easily get the exact value by calling ENV["MAKEFLAGS"]. So let's not commit to this API.
2015-05-25Use canonical representation of the superenv bin directoryRyan Hendrickson
The xcrun script should be skipping the ENV directory when it scans $PATH looking for tools to run. Unfortunately, the script compares the paths found to the real path of the ENV directory (following symlinks), but superenv was adding the nominal path to $PATH, not following symlinks. As a consequence, platforms with Xcode < 4.3 would get into infinite loops when trying to call non-system versions of gcc, as xcrun calls the ENV version of gcc-X.X which calls xcrun and so on forever. This commit changes superenv to follow symlinks when determining the bin path to use. Fixes Homebrew/homebrew#33731. Closes Homebrew/homebrew#40062. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-16ENV: Add gcc-5 to compilers support C++11なつき
Closes Homebrew/homebrew#39758. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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-04-25ENV.deparallelize: add block form for temporary changeMisty De Meo
Closes Homebrew/homebrew#39026.
2015-04-20Don't use deprecated APIJack Nagel
2015-04-19work around missing __debug header in Xcode CLT 6.3Tim D. Smith
uses the LLVM 3.6 debug header from: http://reviews.llvm.org/diffusion/L/browse/libcxx/tags/RELEASE_360/final/include/__debug Workaround for Homebrew/homebrew#38514. Closes Homebrew/homebrew#38735.