diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-04 12:24:59 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-04 12:24:59 +0000 |
commit | 00a3cccb8cbd9accddfa0e77e85939e263d6a10d (patch) | |
tree | 143427fab1b3ce942142a176dee83f2742c5892b /lib/Driver/ToolChains.cpp | |
parent | e0b89972cae100d60690e78973f53d2dac3c060e (diff) |
Autotools has the same include guard for both Clang and LLVM's config.h.
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
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 0f1a40050d..1c72c7f525 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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" |