aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-16 23:10:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-16 23:10:13 +0000
commitfec26bd1f4681db8c253fb86529e52bcad28a3ff (patch)
treed8cd32db16fdabd5b94f334e8d63b03ec009c20a
parentcb70bb2899944b42c6269caa9e39a81ca146fe81 (diff)
Driver: Allow using clang as a precompiler, even if it is an
unsupported arch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69322 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Driver/Driver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index da590f2bca..5afcefe68d 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1187,6 +1187,12 @@ bool Driver::ShouldUseClangCompiler(const Compilation &C, const JobAction &JA,
return false;
}
+ // Always use clang for precompiling, regardless of archs. PTH is
+ // platform independent, and this allows the use of the static
+ // analyzer on platforms we don't have full IRgen support for.
+ if (isa<PrecompileJobAction>(JA))
+ return true;
+
// Finally, don't use clang if this isn't one of the user specified
// archs to build.
if (!CCCClangArchs.empty() && !CCCClangArchs.count(ArchName)) {