Skip to content

Include lib/cmake/clang files in clang+llvm tarballs #1

@MaskRay

Description

@MaskRay

Regarding clang+llvm releases on https://github.com/songdongsheng/asset-store

https://discourse.llvm.org/t/llvm-20-x-release-third-party-binaries/84366/3

Older LLVM releases on releases.llvm.org contain CMake config files for both llvm and clang, e.g.

% ls clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4/lib/cmake/clang/
AddClang.cmake  ClangConfig.cmake  ClangTargets-release.cmake  ClangTargets.cmake

This enables projects using CMake find_package(Clang REQUIRED) to locate the Clang library via:

-DCMAKE_PREFIX_PATH=path/to/clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4

It would be helpful to include the lib/cmake/clang directory in your tarballs as well to maintain this functionality for downstream projects relying on Clang's API.

In tarballs that target glibc 2.36+, you might specify LDFLAGS -z pack-relative-relocs to utilize the compact relative relocation feature (DT_RELR) to make the executables smaller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions