]> granicus.if.org Git - clang/commitdiff
[Driver] Use llvm-config.h, not config.h to unbreak out-of-tree builds
authorVedant Kumar <vsk@apple.com>
Thu, 18 Aug 2016 06:43:07 +0000 (06:43 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 18 Aug 2016 06:43:07 +0000 (06:43 +0000)
llvm/Config/config.h has intentionally been excluded from llvm
installations (see: llvm/CMakeLists.txt). Un-break out-of-tree builds
post-r278882 by switching to llvm-config.h, which is exported.

Suggested by Will Dietz!

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

tools/driver/cc1_main.cpp

index b44108e8ad289366ba85f9c3687f94abfc2120cf..1fddc7ce44bcd19de73aa30d7276d4bc05efdbdc 100644 (file)
@@ -25,7 +25,7 @@
 #include "clang/Frontend/Utils.h"
 #include "clang/FrontendTool/Utils.h"
 #include "llvm/ADT/Statistic.h"
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
 #include "llvm/LinkAllPasses.h"
 #include "llvm/Option/ArgList.h"
 #include "llvm/Option/OptTable.h"