Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rxwei/llvm_c
Swift Package for LLVM C bindings
https://github.com/rxwei/llvm_c
llvm swift
Last synced: about 2 hours ago
JSON representation
Swift Package for LLVM C bindings
- Host: GitHub
- URL: https://github.com/rxwei/llvm_c
- Owner: rxwei
- Created: 2016-08-27T03:41:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T03:17:51.000Z (almost 8 years ago)
- Last Synced: 2024-11-11T22:34:19.684Z (about 2 months ago)
- Topics: llvm, swift
- Language: Objective-C
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLVM
LLVM/Clang's C bindings for Swift## Package
Add a dependency:
```swift
.Package(url: "https://github.com/rxwei/LLVM_C", majorVersion: 2, minor: 1)
```## Module
```swift
import LLVM_C
import Clang_C
```You'll need to specify the path to your LLVM library at `swift build`. For example:
```bash
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
```Or use `llvm-config`:
```bash
swift build -Xcc "`llvm-config --cflags`" -Xlinker "-I`llvm-config --libdir`"
```