Commit Graph
119 Commits
Author SHA1 Message Date
Manpreet Singh e5030b9097 pod2man: Fix for machines upgraded to Mavericks
Closes #24590.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-01-28 18:36:06 -08:00
Misty De Meo 6896f9d178 Revert "Add python superenv wrapper"
This reverts commit 90e22e389c.
2014-01-27 20:46:04 -08:00
Misty De Meo 3a841ca67f Redo python shim script in ruby 2014-01-27 12:14:29 -08:00
Misty De Meo 90e22e389c Add python superenv wrapper
Closes #26140.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-01-26 10:55:49 -08:00
Jack Nagel 7bc1538aca Apply the same filtering to -I paths as -L paths 2013-12-27 15:46:36 -06:00
Jack Nagel 76c0e47d97 superenv: don't accidentally filter out HOMEBREW_TEMP
Fixes #25471.
2013-12-27 13:01:41 -06:00
Jack Nagel 83ff584d7b Escape prefix when interpolating into regexp 2013-12-27 13:01:41 -06:00
Jack Nagel e90d50f82c Revert "Revert "Split bsdmake wrapper out from make wrapper""
I think enough time has passed that it is safe to do this now.

This reverts commit 1003161a84.
2013-12-04 00:37:57 -06:00
Jack Nagel b540437d66 Fix parsing of "-I foo" and "-L foo" under superenv
Fixes #24654.
2013-11-26 21:42:10 -06:00
Jack Nagel 24bfbc08f8 Avoid globals when ivars will do 2013-11-21 17:17:56 -06:00
Jack Nagel 429c42c265 Move some global methods into the context in which they used 2013-11-21 17:17:56 -06:00
Jack Nagel 557ef72dbb Remove some monkeypatches 2013-11-21 17:17:55 -06:00
Jack Nagel d2a38180e6 Use grep instead of select + match 2013-11-21 17:13:49 -06:00
Jack Nagel 88ac11b6c7 Allow -Wno- flags to pass through
These inhibit warnings-as-errors, so allow them to pass through.
2013-11-21 16:44:52 -06:00
Jack Nagel db30609269 Remove uses of -no-cpp-precomp 2013-11-20 15:02:04 -06:00
Jack Nagel 28c9e3b866 Simplify passing archflags to cc wrapper 2013-11-20 13:19:14 -06:00
Jack Nagel cee5e1296b Move optimization flag selection out of cc wrapper
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 #24540.
2013-11-20 13:19:06 -06:00
Jack Nagel c9c537436a ENV strings are already frozen 2013-11-17 22:57:37 -06:00
Jack Nagel be8e61079d Export HOMEBREW_PREFIX to build environment
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 #24418.
2013-11-17 22:57:16 -06:00
Jack Nagel 9bc23fd620 Remove outdated TODOs 2013-11-17 22:17:14 -06:00
Jack Nagel 27251d742f Write debug log in non-verbose mode 2013-11-17 19:09:24 -06:00
Jack Nagel 6a5739fda9 Replace error-prone superenv debug ouput with a separate log file 2013-11-17 19:04:21 -06:00
Jack Nagel bceed105ad Improve heuristic for detecting configure 2013-11-15 00:40:17 -06:00
Jack Nagel 1003161a84 Revert "Split bsdmake wrapper out from make wrapper"
This reverts commit ba7ec6eb2f.

Temporarily mitigate bug fixed in 1153d0f9e2.
2013-11-14 09:48:20 -06:00
Jack Nagel d62506bca5 Add ant wrapper to superenv
Closes #24285.
Refs #22199.
2013-11-13 22:37:38 -06:00
Jack Nagel ba7ec6eb2f Split bsdmake wrapper out from make wrapper 2013-11-13 22:26:07 -06:00
Jack Nagel a2f11cec69 Allow changing the optimization level under superenv 2013-11-12 13:53:29 -06:00
Jack Nagel 3abb8871bf Extract optflags method from cflags method 2013-11-12 13:53:29 -06:00
Jack Nagel 1f2873fc5c Extract archflags method from cflags method 2013-11-12 13:53:29 -06:00
Jack Nagel 96efd9d7e5 Only pass cflags during configure and make
Fixes #24172.
2013-11-11 12:15:57 -06:00
Jack Nagel 8c5b0f8423 Pass optimization and arch flags during configure
Closes #24106.
2013-11-10 18:25:33 -06:00
Jack Nagel 1f9ee27299 Extract cxxflags method from cflags method 2013-11-10 18:24:49 -06:00
Bulat Shakirzyanov c4a0c71a5e superenv: fix versioned g++ invocations.
Closes #24104.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-11-09 09:56:37 +00:00
Mike McQuaid ca4bfcf898 superenv: add shims for gcc4.{3-9}. 2013-11-07 12:04:59 +00:00
Jack Nagel 6f11b315d4 Disable make_fuss when running configure invoked by make
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-04 11:02:18 -06:00
Jack Nagel 2cdb430bba Move superenv make_fuss output back to stderr
In 6e3a585607 ("Improve superenv
add/remove message."), more debugging information was added to the
"make_fuss" output generated by the superenv compiler
wrapper.

This resulted in some breakage in configure scripts that inspect stderr,
so in e1bd9b9e98 ("Don't use stderr for
make_fuss output."), the output was moved to stdout. This only appeared
to solve the problem, since stdout is buffered but stderr is not.

Later, in fb749e4750, Homebrew started
generating logs even in verbose mode. This had the side effect of moving
stdout/stderr from a TTY to a pipe, and thus stdout was no longer
line-buffered.

Since it was not line-buffered, and Ruby's internal buffers were not
flushed, the debug output was being lost. This was addressed in
2d5724af86 ("cc: ensure wrapper output is
always flushed").

This caused stdout to be flushed during configure, which resurfaced the
original bug that prompted e1bd9b9e98.
This was fixed by disabling the debug output during configure, in
f1779837a4.

Since the original bug has been addressed in a more robust way, we can
move the debug output back to stderr.

Fixes #23923.
2013-11-03 20:19:54 -06:00
Jack Nagel f1779837a4 cc: disable make_fuss during configure
Fixes #23885.
2013-11-02 00:43:17 -05:00
Jack Nagel 2d5724af86 cc: ensure wrapper output is always flushed 2013-11-01 23:16:17 -05:00
Xiyue Deng 3ec40c062e Clang standard library selection.
* 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-26 22:17:04 -07:00
Xiyue Deng aeaf6fe104 C++11 support.
* 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 #22453.
2013-10-26 22:17:04 -07:00
Xiyue Deng e1bd9b9e98 Don't use stderr for make_fuss output.
* Using stderr breaks some configure script which fails due to contents
  available in stderr.
2013-10-20 06:44:05 -07:00
Misty De Meo dbeb9c2a27 superenv: always respect HOMEBREW_CC
Closes #23322.
2013-10-19 23:17:05 -07:00
Xiyue Deng 6e3a585607 Improve superenv add/remove message.
* Now it includes all flags that are added or removed by superenv when
  passing "--verbose" or envvar VERBOSE or HOMEBREW_VERBOSE is set.
2013-10-18 13:11:50 -07:00
Mike McQuaid ca9f6f7a3d pod2man: add ENV wrapper.
Closes #22528.
2013-09-27 21:35:03 +01:00
Misty De Meo 1bd8309ff2 Silence xcrun output in wrapper
Our wrapper always runs the real xcrun at least once, to try to find
the path of the tool being run, but this meant that we were generating
a huge number of error messages on every cc invocaton. Mostly this was
annoying but harmless, but notably it managed to break the compilation
of go.
2013-09-25 09:15:26 -07:00
Misty De Meo 5a5ed17dc5 Experimental support for non-Apple GCCs 2013-09-01 13:19:12 -07:00
Jack Nagel ef81779ce9 Don't duplicate -E argument in ccE mode 2013-08-31 11:14:38 -05:00
Jack Nagel a6f24c6b42 Differentiate between "cpp" and "cc-E" modes 2013-08-31 10:43:24 -05:00
Jack Nagel bbf76ac388 Reorder cc wrapper modes by frequency 2013-08-31 10:38:34 -05:00
Jack Nagel 5cfdac0291 superenv: fix no-op system path filtering 2013-08-29 19:08:22 -05:00