This commit is contained in:
Thomas Pöchtrager 2017-10-24 21:59:53 +02:00
parent c76352d614
commit fe68e8b457

View File

@ -794,7 +794,8 @@ bool Target::setup() {
}
}
if (isClang() && clangversion >= ClangVersion(3, 8)) {
if (isClang()) {
if (clangversion >= ClangVersion(3, 8)) {
//
// Silence:
// warning: libLTO.dylib relative to clang installed dir not found;
@ -806,6 +807,19 @@ bool Target::setup() {
if (wliblto == -1)
fargs.push_back("-Wno-liblto");
}
} else if (isGCC()) {
if (args.empty() || (args.size() == 1 && args[0] == "-v")) {
//
// HACK:
// Discard all arguments besides the first one
// (which is <arch>-apple-darwinXX-gcc) to fix the issue
// described in #135.
//
while (fargs.size() > 1)
fargs.erase(fargs.end() - 1);
}
}
return true;
}