[cfe-dev] [CMake][Clang] Include llvm/Config/config.h under the clang source tree
Michał Górny via cfe-dev
cfe-dev at lists.llvm.org
Wed Jul 29 08:58:13 PDT 2020
On Wed, 2020-07-29 at 15:11 +0000, Balázs Benics wrote:
> Hi list
>
> It turns out I can not include the `llvm/Config/config.h` under the clang
> source tree.
> And, I accidentally did so, breaking some build according to Michał Górny
> in D78704 <https://reviews.llvm.org/D78704>;.
>
> How can we prevent this from happening in the future?
> Shouldn't be such //private// headers private to the CMake target in the
> first place?
>
> In the mentioned patch I need a specific build configuration info for the
> test.
> I'm checking if the `LLVM_WITH_Z3` is defined or not - to detect the
> availability of Z3.
> How should I query this instead?
>
If I'm not mistaken, llvm-config.h is the file for public definitions.
You'll probably have to add a #define for Z3 there.
--
Best regards,
Michał Górny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200729/aec7bf8f/attachment.sig>
More information about the cfe-dev
mailing list