<div dir="ltr">Clang isn't allowed to use LLVM's config.h, though, specifically to support the standalone build.<div><br></div><div>You can either create equivalent LLVM_ prefixed macros in llvm-config.h.cmake, or repeat the checks and define the same macros in clang/include/clang/Config/config.h.cmake.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 9:25 AM, Richard Smith via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">This doesn't work at all, llvm-config.h does not provide the relevant configuration macros.</p><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">On 17 Aug 2016 11:56 p.m., "Vedant Kumar via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: vedantk<br>
Date: Thu Aug 18 01:43:07 2016<br>
New Revision: 279035<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=279035&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject?rev=279035&view=rev</a><br>
Log:<br>
[Driver] Use llvm-config.h, not config.h to unbreak out-of-tree builds<br>
<br>
llvm/Config/config.h has intentionally been excluded from llvm<br>
installations (see: llvm/CMakeLists.txt). Un-break out-of-tree builds<br>
post-r278882 by switching to llvm-config.h, which is exported.<br>
<br>
Suggested by Will Dietz!<br>
<br>
Modified:<br>
    cfe/trunk/tools/driver/cc1_mai<wbr>n.cpp<br>
<br>
Modified: cfe/trunk/tools/driver/cc1_mai<wbr>n.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1_main.cpp?rev=279035&r1=279034&r2=279035&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject/cfe/trunk/tools/driver/<wbr>cc1_main.cpp?rev=279035&r1=<wbr>279034&r2=279035&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/tools/driver/cc1_mai<wbr>n.cpp (original)<br>
+++ cfe/trunk/tools/driver/cc1_mai<wbr>n.cpp Thu Aug 18 01:43:07 2016<br>
@@ -25,7 +25,7 @@<br>
 #include "clang/Frontend/Utils.h"<br>
 #include "clang/FrontendTool/Utils.h"<br>
 #include "llvm/ADT/Statistic.h"<br>
-#include "llvm/Config/config.h"<br>
+#include "llvm/Config/llvm-config.h"<br>
 #include "llvm/LinkAllPasses.h"<br>
 #include "llvm/Option/ArgList.h"<br>
 #include "llvm/Option/OptTable.h"<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div></div>
</div></div><br>______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>