| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is consistent with how e.g. `gcc-4.2` is handled.
This means e.g. `ghc` can find `gcc-4.8` at runtime.
Fixes Homebrew/homebrew#28934.
|
|
Avoid throwing unnecessary exceptions by checking for paths existing and
creating formulae as late as possible. Additionally use instance
variables for some caching.
|
|
Instead check if the path exists by using opt.
|
|
|
|
|
|
This is saved in HOMEBREW_OPTFLAGS and later mutated by
ENV.universal_binary, so if this returns nil the sub will fail.
|
|
In this case we need to handle the throwing on an exception when
attempting to initialize the gcc48 Formula object.
This initialization should be unnecessary if the core GCC is already
installed and rescued if not.
|
|
This code originated in a slightly different form in 8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad:
https://github.com/Homebrew/homebrew/blob/8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad/Library/Homebrew/extend/ENV.rb#L30-L32
Back then, MacOS.default_compiler could return nil, which meant
ENV.compiler could do the same. This code was carried forward as the
surrounding code changed. At this point it should be unreachable.
|
|
Closes Homebrew/homebrew#28820.
|
|
|
|
|
|
|
|
|
|
On older Apple compilers "-O4" is known to cause build errors. On recent
clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get
the old behavior.
|
|
It is activated by the same mechanism as the Homebrew/versions compilers
which now check if the GCC formula uses the same, correct version.
References Homebrew/homebrew#28418.
|
|
|
|
|
|
These days Homebrew refuses to do anything if the xcode-select path is
busted, so this workaround is unnecessary.
|
|
|
|
Rationale: our arg refurbishment is normally only turned on when
called via the `make` wrapper, for compatibility reasons. However,
there are numberous places we'd like this to be turned on elsewhere,
like software that builds via `python setup.py` where bad flags from
the system python can be pulled in.
This helper appends 'O' to CCCFG, which enables refurbishment for
all calls of the compiler shims.
|
|
|
|
This reverts commit b603c96276cf7fe1417d2355eebc47fb15da0b8c.
|
|
|
|
[jn: style, update comment]
Closes Homebrew/homebrew#25728.
Fixes Homebrew/homebrew#26834.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
This flag no longer affects the output of the compiler wrappers, since
everything is buffered by the build process rather than each individual
tool.
Additionally, this is a user-facing knob that affects ARGV.verbose?, and
the combination of these two issues broke the --quieter feature.
|
|
Fixes Homebrew/homebrew#26338.
Closes Homebrew/homebrew#26352.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
This reverts commit 90e22e389c539b25fe7864645bfe5e2a9ce7452f.
|
|
Closes Homebrew/homebrew#26140.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
|
|
|
|
|
|
This raise happened in no other ENV methods, and isn't really necessary
since fails_with guards against this method actually being called unless
gcc-4.2 is actually installed.
|
|
|
|
This reverts commit 0e1d52c0d3945ae0ac69383c7734e425b7fbf8f1.
|
|
This reverts commit f4dc5614953b3b90acc28c83262d56587b0616b1.
|
|
|
|
Since ENV.cc/cxx are accessors to ENV, any values being passed through
are coerced into strings, which means that a nil `ENV.cc` is actually
an empty string - which isn't considered to be false in Ruby.
Fixes mistydemeo/tigerbrew#161.
Fixes mistydemeo/tigerbrew#135.
|
|
Fixes Homebrew/homebrew#25471.
|
|
|
|
Closes Homebrew/homebrew#24904.
|
|
Fixes Homebrew/homebrew#19962.
|
|
|