The :force behavior for ENV.gcc has been the default for some time, and
was used to force vanilla gcc in case the gcc symlink pointed at
llvm-gcc; for ENV.clang, this doesn't mattera as clang is just clang.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
The clang frontend ignores a number of options that are accepted by gcc
and llvm-gcc. However, it produces a warning for each unused argument at
each invocation, which can result in many lines of noise, e.g.
clang: warning: argument unused during compilation: '-rdynamic'
Since these arguments do not affect compilation, let's just silence the
warnings by passing '-Qunused-arguments' to clang by default.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Includes a patch by Lincoln Myers <lincoln_myers@yahoo.com>,
fixing a recently introduced compilation bug on OSX.
Patch is already included upstream, and will be in libvirt 0.9.11.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This has had ENV.j1 since the beginning, but it seems to build fine
these days. If it still fails for someone it needs a comment with
justification.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Better tests are certainly welcome, but keep in mind that the source is
not available to `brew test`. If `make check` is necessary it should be
done as part of the build.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Calling Keg#unlink on "#{f.rack}/#{f.version}" will perform the unlink
relative to the _new_ keg, rather than the keg we are upgrading from.
Fix this by resolving the linked_keg entry and unlinking relative to it.
Fixes#10296.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This adds a very small patch to fix an issue with building nmap with
clang. The crux of the issue is that clang no longer compiles files with
void main() instead requiring int main(). This causes the configure to
fail when attempting to identify if a certain feature exists which
causes nmap to include its own version which off course causes a compile
failure because now you have two structs with the same name and two
functions with the same name in the same compilation unit.
This patch should probably be sent upstream as well.
Closes#10302.
Closes#10300.
Signed-off-by: Max Howell <max@methylblue.com>