File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 18
18
- name : Pre-install
19
19
run : |
20
20
brew update
21
- brew install llvm@17
21
+ brew install llvm@18
22
22
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile
23
23
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> /Users/runner/.bash_profile
24
24
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> /Users/runner/.bash_profile
31
31
run : swift build -v
32
32
# - name: Run tests
33
33
# run: swift test -v
34
+
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ At the same time adhering to the principles of a safety and reliability implemen
22
22
brew install llvm
23
23
```
24
24
- Set Environment variables, that provided during ` brew ` llvm install
25
- - initialize ` pkg-config ` :
25
+ - initializes ` pkg-config ` :
26
26
```
27
27
./utils/make-pkg-config.swift
28
28
```
@@ -32,14 +32,15 @@ brew install llvm
32
32
### Supported LLVM version
33
33
34
34
- [x] v17.0
35
+ - [x] v18.0
35
36
36
37
37
38
### Troubleshooting
38
39
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 :
40
41
- installed LLVM
41
42
```
42
- llv --version
43
+ llc --version
43
44
```
44
45
- Set environment variables for your terminal (for example in ` .zshrc ` ). To get instruction about variables run:
45
46
```
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ func makeFile() throws {
60
60
let brewLLVMConfig = { which ( " \( brewPrefix) /opt/llvm/bin/llvm-config " ) }
61
61
62
62
/// 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 {
64
64
throw " Failed to find llvm-config. Ensure llvm-config is installed and " +
65
65
" in your PATH "
66
66
}
@@ -82,7 +82,7 @@ func makeFile() throws {
82
82
let version = ( components [ 0 ] , components [ 1 ] , components [ 2 ] )
83
83
84
84
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) "
86
86
}
87
87
88
88
print ( " LLVM version is \( versionStr) " )
You can’t perform that action at this time.
0 commit comments