This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Introduce header-only interface library for tablegen targets
DraftPublic

Authored by chapuni on May 17 2023, 3:36 PM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Summary
  • Introduce add_library(INTERFACE) instead of add_custom_target
  • LLVM_GENERATED_INCLUDES_BASE controls partitioning
    • ${LLVM_GENERATED_INCLUDES_BASE}/path/to/file.inc is emitted to ${LLVM_GENERATED_INCLUDES_BASE}/${target}/path/to/file.inc

Diff Detail

Event Timeline

chapuni created this revision.May 17 2023, 3:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 3:36 PM
Herald added a subscriber: ekilmer. · View Herald Transcript