From 5542635a0fcfcd4b96eecf6f08e3648bd5bf739c Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 4 Dec 2012 14:31:59 +0000 Subject: [PATCH] ToolChains.cpp: Fixup r169260, clang/Config/config.h needs to be listed *last*, or llvm/Config/llvm-config.h could not be read in header files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169268 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 1c72c7f525..e036ee2ed9 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -7,10 +7,6 @@ // //===----------------------------------------------------------------------===// -// 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" @@ -33,6 +29,11 @@ #include "llvm/Support/Path.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" + +// FIXME: This needs to be listed last 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 // ::getenv using namespace clang::driver; -- 2.50.1