From fec26bd1f4681db8c253fb86529e52bcad28a3ff Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 16 Apr 2009 23:10:13 +0000 Subject: [PATCH] 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 --- lib/Driver/Driver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(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)) { -- 2.40.0