This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Move CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) into clang/Config/config.h.
ClosedPublic

Authored by chapuni on Jul 17 2017, 6:49 PM.

Details

Summary

LLVM_ENABLE_MODULES is sensitive of -D. Move them into config.h.

FIXME: It'd be better that they are #cmakedefine01 rather than #cmakedefine.
(#if FOO rather than #if defined(FOO))
Then we can find missing #include "clang/Config/config.h" in the future.

Diff Detail

Repository
rL LLVM

Event Timeline

chapuni created this revision.Jul 17 2017, 6:49 PM
This revision is now accepted and ready to land.Jul 18 2017, 12:44 AM
This revision was automatically updated to reflect the committed changes.