Jack Nagel
a00dcd0079
Use a multiline conditional to make this code more readable
2014-04-20 16:52:59 -05:00
Jack Nagel
275e66e08d
Stop loading a bunch of monkeypatches every time xcrun is invoked
2014-04-20 16:48:55 -05:00
Jack Nagel
91cc7aca49
Use File.expand_path
2014-04-20 16:33:41 -05:00
Jack Nagel
dd8dc7a380
Remove obsolete DEVELOPER_DIR hacks
...
These days Homebrew refuses to do anything if the xcode-select path is
busted, so this workaround is unnecessary.
2014-04-20 16:33:41 -05:00
Jack Nagel
2c54aa3262
Remove -fno-reorder-blocks for clang
...
Fixes Homebrew/homebrew#28289 .
2014-04-11 12:36:57 -05:00
Jack Nagel
26f7393ea9
Remove -fcaller-saves and -fthread-jumps for clang
2014-03-28 14:50:05 -05:00
dinkypumpkin
bfc6a73cba
cc: don't add linker arguments if only -v passed.
...
Supports configure scripts (e.g., mplayer) that use "gcc -v" to
identify compiler.
Closes Homebrew/homebrew#27793 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-25 08:15:35 +00:00
Jack Nagel
4365292374
Filter -fno-delete-null-pointer-checks for clang
...
Fixes Homebrew/homebrew#27836 .
2014-03-24 20:05:33 -05:00
Jack Nagel
8d723ff877
More flags clang dislikes
2014-03-21 13:01:55 -05:00
Jack Nagel
59b444949a
Filter out -fcheck-new
2014-03-20 23:16:37 -05:00
Jack Nagel
87b9d7ff6a
More flags that clang used to ignore
2014-03-19 21:40:41 -05:00
Jack Nagel
6060ffd5ce
Filter out "-mno-dynamic-no-pic"
2014-03-16 23:08:22 -05:00
Misty De Meo
86a0373159
superenv: filter -fno-check-new
...
Fixes Homebrew/homebrew#27415 .
2014-03-14 12:29:17 -07:00
Mike McQuaid
d6bc5f42f0
cc: filter more flags clang hates.
...
Should help with the Xcode 5.1 madness.
Closes Homebrew/homebrew#27549 .
2014-03-14 17:29:44 +00:00
Jack Nagel
02270c5edb
Don't munge arguments when configure is run by make
...
Fixes Homebrew/homebrew-versions#364 .
2014-02-28 20:41:44 -06:00
Manpreet Singh
cf8cd9d4c2
pod2man: Fix for machines upgraded to Mavericks
...
Closes Homebrew/homebrew#24590 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-01-28 18:36:06 -08:00
Misty De Meo
b7781c4571
Revert "Add python superenv wrapper"
...
This reverts commit 90e22e389c539b25fe7864645bfe5e2a9ce7452f.
2014-01-27 20:46:04 -08:00
Misty De Meo
1f7e317d26
Redo python shim script in ruby
2014-01-27 12:14:29 -08:00
Misty De Meo
ee76cf75af
Add python superenv wrapper
...
Closes Homebrew/homebrew#26140 .
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-01-26 10:55:49 -08:00
Jack Nagel
2e22465aa4
Apply the same filtering to -I paths as -L paths
2013-12-27 15:46:36 -06:00
Jack Nagel
b745d21912
superenv: don't accidentally filter out HOMEBREW_TEMP
...
Fixes Homebrew/homebrew#25471 .
2013-12-27 13:01:41 -06:00
Jack Nagel
ccc0eb98ba
Escape prefix when interpolating into regexp
2013-12-27 13:01:41 -06:00
Jack Nagel
c84f7d0ab2
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 1003161a848970e782633959904ea776dda7e48b.
2013-12-04 00:37:57 -06:00
Jack Nagel
4584407425
Fix parsing of "-I foo" and "-L foo" under superenv
...
Fixes Homebrew/homebrew#24654 .
2013-11-26 21:42:10 -06:00
Jack Nagel
be08993a79
Avoid globals when ivars will do
2013-11-21 17:17:56 -06:00
Jack Nagel
ce5f4ad4df
Move some global methods into the context in which they used
2013-11-21 17:17:56 -06:00
Jack Nagel
a40a0e1862
Remove some monkeypatches
2013-11-21 17:17:55 -06:00
Jack Nagel
8c613e618b
Use grep instead of select + match
2013-11-21 17:13:49 -06:00
Jack Nagel
9584320668
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
de9b1845e0
Remove uses of -no-cpp-precomp
2013-11-20 15:02:04 -06:00
Jack Nagel
0a236abe53
Simplify passing archflags to cc wrapper
2013-11-20 13:19:14 -06:00
Jack Nagel
e0d2492247
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 Homebrew/homebrew#24540 .
2013-11-20 13:19:06 -06:00
Jack Nagel
290b58bcc0
ENV strings are already frozen
2013-11-17 22:57:37 -06:00
Jack Nagel
c020950a42
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 Homebrew/homebrew#24418 .
2013-11-17 22:57:16 -06:00
Jack Nagel
e4da435995
Remove outdated TODOs
2013-11-17 22:17:14 -06:00
Jack Nagel
f465c781d8
Write debug log in non-verbose mode
2013-11-17 19:09:24 -06:00
Jack Nagel
aec457bb7c
Replace error-prone superenv debug ouput with a separate log file
2013-11-17 19:04:21 -06:00
Jack Nagel
ba0cfd3582
Improve heuristic for detecting configure
2013-11-15 00:40:17 -06:00
Jack Nagel
6163c2a98e
Revert "Split bsdmake wrapper out from make wrapper"
...
This reverts commit ba7ec6eb2f650ebc5a0ae09547eea423dbd45173.
Temporarily mitigate bug fixed in 1153d0f9e20d0b6a19203707b609634f8fea1ad5.
2013-11-14 09:48:20 -06:00
Jack Nagel
bb67a20206
Add ant wrapper to superenv
...
Closes Homebrew/homebrew#24285 .
Refs Homebrew/homebrew#22199 .
2013-11-13 22:37:38 -06:00
Jack Nagel
5a56ad123d
Split bsdmake wrapper out from make wrapper
2013-11-13 22:26:07 -06:00
Jack Nagel
4cb824b92e
Allow changing the optimization level under superenv
2013-11-12 13:53:29 -06:00
Jack Nagel
74673633c0
Extract optflags method from cflags method
2013-11-12 13:53:29 -06:00
Jack Nagel
16d2429703
Extract archflags method from cflags method
2013-11-12 13:53:29 -06:00
Jack Nagel
e22ad69f00
Only pass cflags during configure and make
...
Fixes Homebrew/homebrew#24172 .
2013-11-11 12:15:57 -06:00
Jack Nagel
42b54150af
Pass optimization and arch flags during configure
...
Closes Homebrew/homebrew#24106 .
2013-11-10 18:25:33 -06:00
Jack Nagel
43baf49ff1
Extract cxxflags method from cflags method
2013-11-10 18:24:49 -06:00
Bulat Shakirzyanov
1f1678a1d5
superenv: fix versioned g++ invocations.
...
Closes Homebrew/homebrew#24104 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-11-09 09:56:37 +00:00
Mike McQuaid
f426fdd4fb
superenv: add shims for gcc4.{3-9}.
2013-11-07 12:04:59 +00:00
Jack Nagel
06dbec5aaf
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