https://github.com/codeintelligencetesting/llvm-static
https://github.com/codeintelligencetesting/llvm-static
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeintelligencetesting/llvm-static
- Owner: CodeIntelligenceTesting
- Created: 2024-06-14T06:13:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T12:17:47.000Z (10 months ago)
- Last Synced: 2025-02-13T13:27:32.378Z (10 months ago)
- Language: CMake
- Size: 7.81 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLVM Tooling
This repository contains scripts to build static LLVM libraries which can be
used to develop libclangTooling based tools. See the release page for
downloadable archives.
## Usage
The uploaded archive contains a `CMakeLists.txt` which allows for quick
integration of the LLVM tooling libraries in a CMake project. Add the following
snippet to your `CMakeLists.txt` to download the LLVM libraries and link a
target against them:
```
FetchContent_Declare(LLVM URL "https://github.com/CodeIntelligenceTesting/llvm-static/releases/download/18.1.5-b1/llvm-static-linux-amd64.tar.xz")
FetchContent_MakeAvailable(LLVM)
target_link_libraries( PRIVATE clangTooling)
```
## Create New Release
To create a new release e.g. for a new version of LLVM, update the
`CMakeLists.txt` and trigger the manual workflow
["Build LLVM"](https://github.com/CodeIntelligenceTesting/llvm-static/actions/workflows/build-llvm.yaml).