[cfe-commits] r69322 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Thu Apr 16 16:10:14 PDT 2009
Author: ddunbar
Date: Thu Apr 16 18:10:13 2009
New Revision: 69322
URL: http://llvm.org/viewvc/llvm-project?rev=69322&view=rev
Log:
Driver: Allow using clang as a precompiler, even if it is an
unsupported arch.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=69322&r1=69321&r2=69322&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Thu Apr 16 18:10:13 2009
@@ -1187,6 +1187,12 @@
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)) {
More information about the cfe-commits
mailing list