]> granicus.if.org Git - clang/commitdiff
Autotools has the same include guard for both Clang and LLVM's config.h.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 12:24:59 +0000 (12:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 12:24:59 +0000 (12:24 +0000)
Shuffling order causes the wrong one to win.

CMake didn't exhibit this problem because Clang's has *no* guards.

I'll fix this properly tomorrow when Eric and I can check both build
systems and get them to DTRT, but for now unbreak some bots by hoisting
this header.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169260 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 0f1a40050d0a7db8fab6304e769a1a96ec9d4803..1c72c7f5253b938227411cae889eff2319f56273 100644 (file)
@@ -7,11 +7,14 @@
 //
 //===----------------------------------------------------------------------===//
 
+// FIXME: This needs to be listed first until we fix the broken include guards
+// in these files and the LLVM config.h files.
+#include "clang/Config/config.h" // for GCC_INSTALL_PREFIX
+
 #include "ToolChains.h"
 #include "SanitizerArgs.h"
 #include "clang/Basic/ObjCRuntime.h"
 #include "clang/Basic/Version.h"
-#include "clang/Config/config.h" // for GCC_INSTALL_PREFIX
 #include "clang/Driver/Arg.h"
 #include "clang/Driver/ArgList.h"
 #include "clang/Driver/Compilation.h"