<p dir="ltr">On 18 Aug 2016 9:36 a.m., "Reid Kleckner" <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br>
><br>
> Clang isn't allowed to use LLVM's config.h, though, specifically to support the standalone build.<br>
><br>
> 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.</p>
<p dir="ltr">Perhaps the best thing would be to move this functionality into LLVM and just call it from clang.</p>
<p dir="ltr">> On Thu, Aug 18, 2016 at 9:25 AM, Richard Smith via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br>
>><br>
>> This doesn't work at all, llvm-config.h does not provide the relevant configuration macros.<br>
>><br>
>><br>
>> On 17 Aug 2016 11:56 p.m., "Vedant Kumar via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br>
>>><br>
>>> 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">http://llvm.org/viewvc/llvm-project?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_main.cpp<br>
>>><br>
>>> Modified: cfe/trunk/tools/driver/cc1_main.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">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1_main.cpp?rev=279035&r1=279034&r2=279035&view=diff</a><br>
>>> ==============================================================================<br>
>>> --- cfe/trunk/tools/driver/cc1_main.cpp (original)<br>
>>> +++ cfe/trunk/tools/driver/cc1_main.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>
>>> _______________________________________________<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">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
>><br>
>><br>
>> _______________________________________________<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">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
>><br>
></p>