summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Clang.cpp
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-11-28 15:56:00 -0500
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-11-28 17:02:06 -0500
commit1abd4c94d7575e4cd288e0024c1ec79f17b048a9 (patch)
tree5dc253472fc233c8305bc1accbd9a935a083736d /clang/lib/Driver/ToolChains/Clang.cpp
parenta7abe6eac061a999e88d651e4857872f5ec52e5d (diff)
downloadbcm5719-llvm-1abd4c94d7575e4cd288e0024c1ec79f17b048a9.tar.gz
bcm5719-llvm-1abd4c94d7575e4cd288e0024c1ec79f17b048a9.zip
[Clang] Bypass distro detection on non-Linux hosts
Skip distro detection when we're not running on Linux, or when the target triple is not Linux. This saves a few OS calls for each invocation of clang.exe. Differential Revision: https://reviews.llvm.org/D70467
Diffstat (limited to 'clang/lib/Driver/ToolChains/Clang.cpp')
-rw-r--r--clang/lib/Driver/ToolChains/Clang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 26d13c71467..03a6de81204 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5619,7 +5619,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
TC.getTriple().isOSBinFormatCOFF()) &&
!TC.getTriple().isPS4() &&
!TC.getTriple().isOSNetBSD() &&
- !Distro(D.getVFS()).IsGentoo() &&
+ !Distro(D.getVFS(), TC.getTriple()).IsGentoo() &&
!TC.getTriple().isAndroid() &&
TC.useIntegratedAs()))
CmdArgs.push_back("-faddrsig");
OpenPOWER on IntegriCloud