You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`llvm-api-swift` is a library representing Swift LLVM API, a pure Swift interface to the [LLVM API](https://llvm.org/docs/) and its associated libraries.
@@ -14,22 +17,23 @@ At the same time adhering to the principles of a safety and reliability implemen
14
17
15
18
16
19
### Requirements
20
+
17
21
- Supported OS: MacOS 12.0 or above
22
+
18
23
- Swift lang: 5.9 or above
19
24
20
-
- Install LLVM:
25
+
- Install latest LLVM:
21
26
```
22
27
brew install llvm
23
28
```
29
+
24
30
- Set Environment variables, that provided during `brew` llvm install
25
-
- initializes `pkg-config`:
26
-
```
27
-
./utils/make-pkg-config.swift
28
-
```
29
31
30
-
**NOTE:** Every time, when LLVM is updated or installed new version should be run `pkg-config` step.
32
+
- You don't need additional configurations like `pkg-config` files, if your LLVM installation is correct and you successfully set environment variable.
33
+
34
+
:arrow_right: If you have problems, just check [Troubleshooting](#troubleshooting).
31
35
32
-
### Supported LLVM version
36
+
### Supported LLVM versions
33
37
34
38
-[x] v17.0
35
39
-[x] v18.0
@@ -38,22 +42,17 @@ brew install llvm
38
42
### Troubleshooting
39
43
40
44
If `LLVM-C` head files during compilation doesn't found, make sure that you are:
41
-
- installed LLVM
45
+
46
+
- installed LLVM correctly
42
47
```
43
48
llc --version
44
49
```
50
+
45
51
- Set environment variables for your terminal (for example in `.zshrc`). To get instruction about variables run:
46
52
```
47
53
brew info llvm
48
54
```
49
-
- run pkg-config utility:
50
-
```
51
-
./utils/make-pkg-config.swift
52
-
```
53
-
- if utility doesn't have access right to run:
54
-
```
55
-
chmod +x ./utils/make-pkg-config.swift
56
-
./utils/make-pkg-config.swift
57
-
```
55
+
56
+
- To get more insights take a look current project [Github CI config](.github/workflows/swift.yaml).
0 commit comments