aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
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-31Use Pathname.glob when we want pathname objectsJack Nagel
2014-05-28Place X11 ahead of OpenGL when X11 is activeJack Nagel
Fixes #29651.
2014-05-27--help and --version only apply as first argumentAdam Vandenberg
This fixes external commands that provide their own help and version subcommands. Closes #26755.
2014-05-26Share code for sanitizing ENV between both build environmentsJack Nagel
2014-05-22Add ENV.m64 to superenvJack Nagel
2014-05-22Fix ENV.m32 under superenvJack Nagel
2014-05-19Set sysroot for non-clang compilers on 10.9Jack Nagel
Although the correct sysroot is built into Apple's tools on 10.9, we need to continue setting it for custom compilers.
2014-05-19Reorganize superenv include and library path setupJack Nagel
I found the dual use of CMAKE_*_PATH variables to make it difficult to reason about this code. Now a separate set of variables are used to communicate with the cc wrapper, and less work is performed in the wrapper itself. We no longer pass the SDK include path as a -isystem directory on Xcode-only setups. Doing so is redundant with `--sysroot` and has other side effects, namely changing the include path search order, which can break compilation of some software (e.g. qemu). On Xcode-only 10.9, we can additionally omit `--sysroot`, as the correct paths are built into the tools. A new variable, HOMEBREW_SYSROOT, is used to this information to the wrapper. It will be unset on Xcode-only 10.9. HOMEBREW_SDKROOT will continue to be set, as it is used for other things besides setting the include search path.
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-13Use a case statementJack Nagel
2014-05-13Check value of compiler rather than HOMEBREW_CCJack Nagel
2014-05-13Make cc=/cxx= set HOMEBREW_CC in superenvJack Nagel
2014-05-13Remove legacy ENV accessor hackJack Nagel
2014-05-13self, not ENVJack Nagel
2014-05-13Use a case statementJack Nagel
2014-05-13Make sure the path arrays only contain stringsJack Nagel
2014-05-13No need to augment path on Xcode-only 10.9Jack Nagel
2014-05-13Move method to prepare for future changesJack Nagel
2014-05-13Future-proof this conditionalJack Nagel
2014-05-12clean up X11 conditionalsJack Nagel
2014-05-10Ensure HOMEBREW_ARCHFLAGS is always a stringJack Nagel
2014-05-08Always use stub tools in /usr/bin on 10.9Jack Nagel
2014-05-06ENV/shared: fix gcc versions edge case.Mike McQuaid
2014-05-06ENV/std: use full paths to gcc versions.Mike McQuaid
This is consistent with how e.g. `gcc-4.2` is handled. This means e.g. `ghc` can find `gcc-4.8` at runtime. Fixes #28934.
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-05-05Add a method_defined? guard for Pathname#/Jack Nagel
This was added to the stdlib in https://github.com/ruby/ruby/commit/391fc2eeecfc2f0d0f851b0c27ba02e041fe2cd9.
2014-05-05Use #+ instead of #join to define Pathname#/Alexey Muranov
See also https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/45826/diff/ext/pathname/lib/pathname.rb Closes #28972. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-03Suppress a warning on Ruby 2.1+Jack Nagel
2014-05-02Fix for String#undentBaptiste Fontaine
Without it, String#undent would fail on unindented strings, e.g.: "foo".undent NoMethodError: undefined method `length' for nil:NilClass` Closes #28873. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-01Xcode-only path adjustments should be the same in both environmentsJack Nagel
2014-05-01Move xctoolchain_path to Xcode module, where it belongsJack Nagel
2014-04-30Superenv: determine_optflags should return a stringMisty De Meo
This is saved in HOMEBREW_OPTFLAGS and later mutated by ENV.universal_binary, so if this returns nil the sub will fail.
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-29Drop obsolete compiler fallback in stdenvJack Nagel
This code originated in a slightly different form in 8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad: https://github.com/Homebrew/homebrew/blob/8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad/Library/Homebrew/extend/ENV.rb#L30-L32 Back then, MacOS.default_compiler could return nil, which meant ENV.compiler could do the same. This code was carried forward as the surrounding code changed. At this point it should be unreachable.
2014-04-29ENV/shared: use homebrew/versions GCC if installedMike McQuaid
Closes #28820.
2014-04-29Use MacOS.locate and delete wrong commentJack Nagel
2014-04-29Remove comment that no longer reflects adjacent codeJack Nagel
2014-04-29We don't use -Qunused-arguments anymoreJack Nagel
2014-04-29ENV.{cc,cxx} setters already set OBJC and OBJCXXJack Nagel
2014-04-29Make ENV.O4 a no-opJack Nagel
On older Apple compilers "-O4" is known to cause build errors. On recent clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get the old behavior.
2014-04-25Yield absolute paths from find_formulaJack Nagel
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.