Skip to content

Commit 8e59019

Browse files
committed
Update to LLVM-18
1 parent 3ed76ed commit 8e59019

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/swift.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Pre-install
1919
run: |
2020
brew update
21-
brew install llvm@17
21+
brew install llvm@18
2222
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile
2323
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> /Users/runner/.bash_profile
2424
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> /Users/runner/.bash_profile
@@ -31,3 +31,4 @@ jobs:
3131
run: swift build -v
3232
# - name: Run tests
3333
# run: swift test -v
34+

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ At the same time adhering to the principles of a safety and reliability implemen
2222
brew install llvm
2323
```
2424
- Set Environment variables, that provided during `brew` llvm install
25-
- initialize `pkg-config`:
25+
- initializes `pkg-config`:
2626
```
2727
./utils/make-pkg-config.swift
2828
```
@@ -32,14 +32,15 @@ brew install llvm
3232
### Supported LLVM version
3333

3434
- [x] v17.0
35+
- [x] v18.0
3536

3637

3738
### Troubleshooting
3839

39-
If `LLVM-C` head files during compulation doesn't found, make sure that you:
40+
If `LLVM-C` head files during compilation doesn't found, make sure that you are:
4041
- installed LLVM
4142
```
42-
llv --version
43+
llc --version
4344
```
4445
- Set environment variables for your terminal (for example in `.zshrc`). To get instruction about variables run:
4546
```

utils/make-pkg-config.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func makeFile() throws {
6060
let brewLLVMConfig = { which("\(brewPrefix)/opt/llvm/bin/llvm-config") }
6161

6262
/// Ensure we have llvm-config in the PATH
63-
guard let llvmConfig = which("llvm-config-11") ?? which("llvm-config") ?? brewLLVMConfig() else {
63+
guard let llvmConfig = which("llvm-config-15") ?? which("llvm-config") ?? brewLLVMConfig() else {
6464
throw "Failed to find llvm-config. Ensure llvm-config is installed and " +
6565
"in your PATH"
6666
}
@@ -82,7 +82,7 @@ func makeFile() throws {
8282
let version = (components[0], components[1], components[2])
8383

8484
guard version >= (11, 0, 0) else {
85-
throw "LLVMSwift requires LLVM version >=11.0.0, but you have \(versionStr)"
85+
throw "LLVMSwift requires LLVM version >=15.0.0, but you have \(versionStr)"
8686
}
8787

8888
print("LLVM version is \(versionStr)")

0 commit comments

Comments
 (0)