aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
AgeCommit message (Collapse)Author
2013-12-02Yielded value is not usedJack Nagel
2013-11-27Require Formula before using itJack Nagel
2013-11-27Adjust optimization flags if the CPU does not support SSE4Jack Nagel
Tentatively fixes Homebrew/homebrew#21778, Homebrew/homebrew#24363.
2013-11-21Remove commentJack Nagel
2013-11-20Simplify passing archflags to cc wrapperJack Nagel
2013-11-20Move optimization flag selection out of cc wrapperJack Nagel
The mapping of architectures to optimization flags is now retrieved from Hardware::CPU and the selected flags are passed as an environmen variable, rather than duplicated in the cc wrapper and re-calculated on every invocation of the compiler. Closes Homebrew/homebrew#24540.
2013-11-17Export HOMEBREW_PREFIX to build environmentJack Nagel
Constructing the path relative to a file in the repository is incorrect on some supported configurations (i.e., the repository is located in a different place than the prefix). Closes Homebrew/homebrew#24418.
2013-11-15Combine X11 path conditionalsJack Nagel
2013-11-15Improve heuristic for detecting configureJack Nagel
2013-11-12Better documentation for no-op superenv methodsJack Nagel
2013-11-12Allow changing the optimization level under superenvJack Nagel
2013-11-12Simplify ENV.0x methods in stdenvJack Nagel
2013-11-12Add ENV.O0 to stdenvJack Nagel
2013-11-11Group public ENV methods togetherJack Nagel
2013-11-11Remove outdated commentJack Nagel
2013-11-08superenv: fix type errorJack Nagel
This is a string since it is used to match string keys in a hash.
2013-11-07superenv: set cc/cxx based on actual compiler.Mike McQuaid
Closes Homebrew/homebrew#23449.
2013-11-04Disable make_fuss when running configure invoked by makeJack Nagel
The cc wrapper's make_fuss is only enabled when HOMEBREW_CCCFG contains 'O', which is set by the make wrapper. This means it is disable when running configure scripts. However, this does not include configure scripts invoked by make, which inherit the value of HOMEBREW_CCCFG from the make process. make_fuss will be enabled for these scripts, cause breakage. Configure scripts generated by autoconf 2.56 (November 2002) or later export DUALCASE into the environment of subprocesses. This variable is only used by the MKS shell, so we can use it as a heuristic to determine if we are running as a subprocess of a configure script.
2013-11-02stdenv: drop space between "-isystem" and path.Xiyue Deng
* This is consistent with superenv.
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-27Make stdenv handling less intrusive.Xiyue Deng
* Don't encode "-Qunused-arguments", as this is only supported in Clang and will break building when C/C++ compiler is switched during the process, e.g. building gcc. The warning is harmless without "-Werror".
2013-10-26Clang standard library selection.Xiyue Deng
* Add new ENV function for selecting stdlib for Clang. - The selection is no-op for non-system-clang compilers. - Both superenv and stdenv are handled. * Add new HOMEBREW_CCCFG flag and ccwrapper handling.
2013-10-26C++11 support.Xiyue Deng
* Add options and ENV method to specify building in C++11 mode. - Set C++ compiler flags to enable C++11 mode. - To add options to support C++11 mode, a formula can now use option :cxx11 to provide "--c++11" option, and detect and enable C++11 support in install method using ENV.cxx11 if build.cxx11? Closes Homebrew/homebrew#22453.
2013-10-19Move verbose ENV setup out of brew.rbJack Nagel
2013-10-18Rename MacOS to OS::MacJack Nagel
2013-10-18Add OS.mac? and OS.linux?Jack Nagel
2013-10-16Allow older non-Apple GCCs to build thingsMisty De Meo
2013-10-13superenv: add gcc-4.0 to superenvMisty De Meo
2013-10-04superenv: fix hardcoded X11 aclocal pathJack Nagel
2013-10-04ENV.x11: only use SDK when CLT is missing and X11 is from AppleJack Nagel
2013-10-04ENV.x11: always add include/freetype2 to CPPFLAGSJack Nagel
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-17superenv: don't set CC in ENV.clang/etc.Misty De Meo
These methods were overriding CC and causing superenv to potentially skip the compiler wrapper - especially if no wrapper existed for the compiler being used, e.g. GNU GCCs. Closes Homebrew/homebrew#22443. Fixes Homebrew/homebrew#22249. Fixes Homebrew/homebrew#22424. Fixes Homebrew/homebrew#22506. Fixes Homebrew/homebrew#22521. Fixes Homebrew/versions#207.
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-06ENV: remove trailing slash from OpenGL header pathJack Nagel
2013-09-03ENV: convert values to strings in cc settersJack Nagel
2013-09-03ENV: use cc accessorJack 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-01Implement fails_with for non-Apple compilersMisty De Meo
This adds support for non-Apple GCC compilers in the fails_with code. A fails_with block for a non-Apple compiler looks like: fails_with :gcc => '4.8.1' do cause 'Foo' end Non-Apple compilers don't have build numbers, so compiler failures are based on version strings instead. Internally non-Apple compilers can be distinguished because they are passed around as strings instead of symbols. In addition, this alters the priority list for compilers, with the following changes: * Apple GCC 4.2 and LLVM-GCC swap positions, with GCC now taking priority. (Maybe LLVM-GCC should just go away.) * Non-Apple GCC compilers are ranked below GCC 4.2 but above LLVM-GCC and Apple GCC 4.0.
2013-09-01Provide reusable GNU GCC constants in ENVMisty De Meo
2013-09-01Experimental support for non-Apple GCCsMisty De Meo
2013-08-31Workaround for debrewAdam Vandenberg
See Homebrew/homebrew#21720.
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: use cflags setterJack Nagel
2013-08-30ENV: use cc accessorJack Nagel
2013-08-30ENV: add cc and cxx settersJack Nagel
2013-08-30Simplify handling custom FCFLAGSJack Nagel