aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/--env.rb
AgeCommit message (Collapse)Author
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.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-08-10tests for shell-specific diagnostic messageGreg Nisbet
2016-08-10resolve conflict in diagnostic.rbGreg Nisbet
2016-04-20--env: move help to documentation commentMartin Afanasjew
2015-11-17Common build environment methods moved in build_environment.rbBaptiste Fontaine
Closes Homebrew/homebrew#45966. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-18Pass formula objects, not strings, into the build environmentJack Nagel
2014-12-30Log build environment on failureJack Nagel
2014-09-14Print each line of --env output atomicallyJack Nagel
2014-09-14Remove unnecessary conditionalJack Nagel
If ARGV.named.empty?, then ARGV.formulae.map(&:name) == [].
2014-09-13Replace loop + delete with array differenceJack Nagel
2014-06-19Remove more unused requiresJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-20Don't fetch the value just to throw it awayJack Nagel
2014-05-20Stop using superenv? method to dump ENVJack Nagel
2014-05-20Remove dead codeJack Nagel
2013-11-07HOMEBREW_USE variables are no longer honored, ignore themJack Nagel
2013-11-07Display only HOMEBREW_CC/CXX in `brew --env` under superenvJack Nagel
The other values will be identical.
2013-08-19audit: activate ENV extensionsJack Nagel
2013-08-19Move common stuff to extend/ENV.rbJack Nagel
2013-08-19Make Superenv activation explicitJack Nagel
2013-06-27brew --env: Add missing CPATH environment variablePaul Fitzpatrick
Closes Homebrew/homebrew#20813. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-02--env: show HOMEBREW_CC in superenvAdam Vandenberg
Closes Homebrew/homebrew#18247.
2013-03-09Exclude global pkgconfig dirs under superenvJack Nagel
2012-09-21brew --env: Use fetch rather than []Max Howell
Because we mess with the return value from [] in superenv due to many formula assuming CFLAGS etc. would not be nil.
2012-08-31Cram GL headers and includes into superenvMax Howell
Fixes Homebrew/homebrew#14554. We justify doing this because pre 10.8 X11 came with GL for all Homebrew-capable systems and as such is a default that we'd prefer not to have to address.
2012-08-31`brew --env` puts HOMEBREW_SDKROOTMax Howell
2012-08-29Always find git and svn without trying hardMax Howell
Two wrapper scripts that find git and svn using the ENV variables we support and then searching through the PATH and looking inside Xcode.app if necessary. Now just calling git or svn in Homebrew code will find and exec the right tool and we can stop fussing. Apologies to @adamv who is probably unimpressed that the cmds directory has non-commands in it now. If it's consolation these are temporary pending some more work on superenv whereby some more directories are created under the superenv root.
2012-08-29Allow eg. `brew --env libxml2`Max Howell
Example useful usage: eval $(brew --env gettext) && clang -Wl,-t -lssl 2>/dev/null
2012-08-29superenv: build-environments that just workMax Howell
1. A minimal build environment, we don't set CFLAGS, CPPFLAGS, LDFLAGS, etc. the rationale being, the less that is set, the less variables we are introducing that can break builds. 2. A set of scripts that replace cc, ld, etc. and inject the -I, -L, etc. flags we need into the args passed to the build-tools. Because we now have complete control over compiler instantiations we do a variety of clean-up tasks, like removing bad flags, enforcing universal builds and ensuring makefiles don't try to change the order of library and include paths from ones that work to ones that don't. The previous ENV-system is still available when --env=std is specified. superenv applies to Xcode >= 4.3 only currently.
2012-08-06brew --env: Added missing env varssamueljohn
Closes Homebrew/homebrew#13431. Signed-off-by: Max Howell <mxcl@me.com>
2012-07-01Dump Cmake environment variables in brew --envJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-02Scupper sourceable output if brew install is pipedMax Howell
`brew install > file` should not give "export CC=/foo" output on Build Failures. Also moved the "Using clang" output to brew when BuildError is thrown as that is where it is interesting, and not if you just do `brew --env`.
2012-03-01Piped `brew --env` outputs in a sourceable formatMax Howell
So you can source `brew --env` to make it easier to build your own software, etc.
2012-02-21Don't hang if xcode-select -print-path is "/"Max Howell
Introducing MacOS.xctools_fucked?. Refs Homebrew/homebrew#10293.
2012-02-19brew --env: fix path to xcrunJack Nagel
Fixes Homebrew/homebrew#10327. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-17Find xcrun if user doesn't ever install Xcode 4.3 helper toolsMax Howell
2012-02-16Use xcrun; Ensure clang is the default compiler with Xcode 4.3Max Howell
Using xcrun as a proxy to execute the compiler tools is per its design. This means you can't treat ENV['CC'] as a path anymore, but I think I found the cases this was being expected and corrected them. It was not proper anyway to assume the variable was a path, it can be anything. Like a proxy. Like xcrun. Also more thoroughly clear ENV.
2011-12-31brew --env: respect --universalJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16--env: dump a few more environment variablesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-06-16Inclue HOMEBREW_USE_CLANG in --env outputAdam Vandenberg
2011-06-16Add clang compiler optionJosé Martínez
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Added --use-gcc flag.Stephen Allred
This allows you to use llvm as your default compiler and keep the cc symlink pointed at llvm, while allowing you to build forumla that requires the gcc. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.