Skip to content

Commit e9bf349

Browse files
committed
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. llvm-svn: 169260
1 parent 55b47ca commit e9bf349

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/Driver/ToolChains.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10+
// FIXME: This needs to be listed first until we fix the broken include guards
11+
// in these files and the LLVM config.h files.
12+
#include "clang/Config/config.h" // for GCC_INSTALL_PREFIX
13+
1014
#include "ToolChains.h"
1115
#include "SanitizerArgs.h"
1216
#include "clang/Basic/ObjCRuntime.h"
1317
#include "clang/Basic/Version.h"
14-
#include "clang/Config/config.h" // for GCC_INSTALL_PREFIX
1518
#include "clang/Driver/Arg.h"
1619
#include "clang/Driver/ArgList.h"
1720
#include "clang/Driver/Compilation.h"

0 commit comments

Comments
 (0)