121 Commits

Author SHA1 Message Date
Jack Nagel
858da0063d Allow disabling arch flag filtering
Closes Homebrew/homebrew#17352.
2014-05-14 00:00:59 -05:00
Jack Nagel
71c0132a1b Scrub out --sysroot 2014-05-12 22:41:53 -05:00
Jack Nagel
d943d7d5fe There isn't a /usr/local in the SDK 2014-05-12 12:37:25 -05:00
Misty De Meo
38765ae9fd superenv: remove duplicate -multiply_definedsuppress filter
This reverts commit 61d8a8e029079ca1922df735683c2b5eb6a39db1.
2014-05-12 09:04:36 -07:00
Misty De Meo
7609cf88c5 clang: add another unknown flag
Fixes Homebrew/homebrew#29141.
2014-05-11 13:11:25 -07:00
Jack Nagel
cbd018a2db Fix duplicate -stdlib flags in cxxld mode
When the cc wrapper is in cxxld mode, -stdlib= is added by both cxxflags
and ldflags, but they are never used separately, so this results in
duplicate flags.
2014-05-10 17:14:30 -05:00
Jack Nagel
df3e6bade5 Move -m32 and -m64 filtering up one level
These flags cannot be used behind -Xarch_<arch>, so stop filtering them
there.
2014-05-10 16:54:30 -05:00
Jack Nagel
5f94742afb Ensure HOMEBREW_ARCHFLAGS is always a string 2014-05-10 16:54:30 -05:00
Jack Nagel
fa3a58f399 Clang doesn't support -fno-for-scope 2014-05-08 22:24:01 -05:00
Adam Vandenberg
f0f1cf2024 clang does not support -fno-regmove 2014-05-08 09:29:32 -07:00
Jack Nagel
5c37baa5e7 Remove nested conditional 2014-05-06 19:31:47 -05:00
Jack Nagel
0418865d56 Preserve -Xarch_<arch> context when filtering args 2014-05-06 18:55:04 -05:00
Jack Nagel
fb296f8224 Extract body of refurbished_args loop 2014-05-06 18:55:04 -05:00
Jack Nagel
fb27cbe6a7 Blacklist more flags that clang does not support
Fixes Homebrew/homebrew#28680.
2014-04-24 13:20:24 -05:00
Jack Nagel
c832bd1591 Fix typo 2014-04-21 10:52:46 -05:00
Jack Nagel
0682c1ad02 Add some comments to the cc wrapper 2014-04-21 10:40:26 -05:00
Jack Nagel
9d15aefd2e Only interpolate constant regexps once 2014-04-21 10:35:05 -05:00
Jack Nagel
23400ec217 Remove code that doesn't do anything 2014-04-21 00:17:34 -05:00
Jack Nagel
85109c95d8 Add newlines between methods 2014-04-21 00:17:34 -05:00
Jack Nagel
815e7f29fc Write the positive case first 2014-04-21 00:17:34 -05:00
Jack Nagel
de9ce56414 Make obvious that what we care about is the presence of sdkroot 2014-04-21 00:17:33 -05:00
Jack Nagel
8b086fe575 Make obvious that this is a nested conditional 2014-04-21 00:17:33 -05:00
Jack Nagel
ed8851dfa1 Filter list before mapping it 2014-04-21 00:17:33 -05:00
Jack Nagel
cb58bd779b Remove last monkeypatch 2014-04-20 22:39:47 -05:00
Jack Nagel
a379fc7f79 Remove nil split monkeypatch 2014-04-20 22:39:47 -05:00
Jack Nagel
bef9ec29ef Remove unused method 2014-04-20 22:39:46 -05:00
Jack Nagel
c351a641de Use original value when building the flag 2014-04-20 20:13:53 -05:00
Jack Nagel
7498cfff99 Remove to_flags monkeypatch 2014-04-20 19:59:25 -05:00
Jack Nagel
d1041319f4 Remove "cleanpath" monkeypatch 2014-04-20 19:57:07 -05:00
Jack Nagel
dfad695748 Use File.expand_path 2014-04-20 18:00:29 -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
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
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