28 Commits

Author SHA1 Message Date
Mike McQuaid
3343d79b9f shims/super/make: don't export MAKE=make.
This is redundant and breaks Handbrake:
https://github.com/HandBrake/HandBrake/issues/872
2017-10-01 12:36:13 +01:00
Shaun Jackman
88bf6abd10 shims/super/cc: Fix c++ -xc++-header
Compiling a precompiled header should be mode :cxx rather than :cxxld.
2017-08-09 12:44:41 -07:00
Misty De Meo
890788af65
FileUtils.make: don't bypass superenv 2017-07-15 17:40:21 -07:00
ilovezfs
0d03eef655 Revert "FileUtils.make: don't bypass superenv" 2017-07-12 02:58:01 -07:00
Misty De Meo
2aefd7eed6 FileUtils.make: don't bypass superenv 2017-07-07 16:23:46 -07:00
David M. Lee
69f3c8320f
Adding shims for GCC 7 2017-06-07 23:37:59 -05:00
Shaun Jackman
5b1213b053 super/cc: Fix --cc=llvm_clang invoked as clang
Fix the error:
brew sh --cc=llvm_clang <<<'clang --version'
Failed to execute llvm_clang --version
2017-03-08 17:11:23 -08:00
Mike McQuaid
86a9434dfc Revert "Revert "cc: always filter flags on deps."" 2017-02-27 13:41:30 +00:00
Mike McQuaid
f814ee87fb Revert "cc: always filter flags on deps." 2017-01-07 09:52:01 +00:00
Mike McQuaid
e4497a2b42 cc: always filter flags on deps.
This has been tested by `brew test-bot` since March and there’s been no
issues so let’s turn it on by default.
2016-12-30 14:31:05 +00:00
Mike McQuaid
ab060c9d52 super/cc: loosen cellar formula regex.
Match HOMEBREW_TAP_FORMULA_REGEX to avoid skipping valid cellar regexes.
2016-12-15 15:15:13 -08:00
Mike McQuaid
b9d0d7719a cc: don't filter -fopenmp for non-llvm_clang.
We can filter it just for Clang and let it be used by anything else.
2016-11-21 08:50:01 +00:00
Alex Wang
3e4544025d Prefer brewed Clang over gcc-6 for needs :openmp
Clang has fully implemented OpenMP support as of LLVM 3.7, so if OpenMP
is required by a formula gcc is no longer the only choice of compiler.

Clang should be preferred over gcc because using gcc meant linking
against libstdc++, which is ABI incompatible with libc++. This may be
unnoticeable for some users, but it causes other builds to fail, e.g.
pstoedit when imagemagick was built with OpenMP. pstoedit is required
for the octave formula, so for some users this could be a significant
problem.
2016-11-18 08:54:09 -05:00
Alex Wang
d2e2110e80 cc: Add -frounding-math to list of ignored flags 2016-11-13 16:18:19 -05:00
ilovezfs
2c43649ffc superenv: prune -Wl,-z,defs when refurbishing
`-Wl,-z,defs` should be pruned out entirely since `-z defs` is not
understood by macOS's `ld`, and the analogue `-undefined error` is
already the default.
2016-11-02 01:21:15 -07:00
Mike McQuaid
3f9cce0a03 Use new "macOS" naming where appropriate.
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Tim D. Smith
8f068fdbca Don't reject -L/usr/local/lib when SDKROOT is defined
/usr/local/lib is removed from the default linker search path when
SDKROOT is defined or sysroot is specified.

Homebrew sometimes sets SDKROOT without setting a sysroot as of 45e138f.
2016-08-31 22:38:18 -07:00
Mike McQuaid
6878577d12 Merge pull request #721 from MikeMcQuaid/no_weak_imports
Set -no_weak_imports linker flag for Xcode 8
2016-08-17 12:22:28 +01:00
Mike McQuaid
ee6c43ebee shims/super/cc: assume Ruby 2. 2016-08-17 09:19:56 +01:00
Mike McQuaid
5609183567 superenv: add LDFLAGS if disabling weak imports. 2016-08-16 15:26:28 +01:00
Martin Afanasjew
2a943d0ad2 shims/sed: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
85c0b594ad shims/pod2man: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
8e180a85b8 shims/mig: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
10af1866af shims/make: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
672dc1bae2 shims/bsdmake: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
faf4bc819c shims/apr-1-config: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
4a7fc07430 shims/ant: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Mike McQuaid
a02be9eea2 ENV: move to new paths. (#507)
Move some stuff formerly in `Library/ENV` around:
- Move `Library/ENV/$XCODE_VERSION` to `Library/Homebrew/env/super` as they are
  all superenv wrappers and all symlinks to the same version. We never needed
  the "separate shims for separate versions" functionality and it just adds
  confusion.
- Move `Library/ENV/pkgconfig` to `Library/Homebrew/env/pkgconfig` to get more
  things under `Library/Homebrew`
- Move `Library/ENV/scm` to `Library/scm` as these wrappers are not actually
  used by or related to superenv (or stdenv) in any way.
2016-07-15 19:03:45 +01:00