@@ -50,77 +50,77 @@ runs:
5050 if : ${{ (runner.os == 'Linux') }}
5151 run : |
5252 if command -v apt > /dev/null 2>&1; then
53- if [ -d "/usr/lib/llvm-17 " ]; then
54- echo "clang 17 and llvm 17 already installed"
53+ if [ -d "/usr/lib/llvm-18 " ]; then
54+ echo "clang 18 and llvm 18 already installed"
5555 else
5656 wget https://apt.llvm.org/llvm.sh
5757 chmod +x ./llvm.sh
58- sudo ./llvm.sh 17 all
58+ sudo ./llvm.sh 18 all
5959 fi
6060
61- if [ -f /usr/lib/llvm-17 /bin/clang-cl ]; then
61+ if [ -f /usr/lib/llvm-18 /bin/clang-cl ]; then
6262 if [ ! -L /usr/bin/clang-cl ]; then
63- sudo ln -s /usr/lib/llvm-17 /bin/clang-cl /usr/bin/clang-cl
63+ sudo ln -s /usr/lib/llvm-18 /bin/clang-cl /usr/bin/clang-cl
6464 else
6565 echo "clang-cl already linked"
6666 fi
6767 else
68- echo "Error: /usr/lib/llvm-17 /bin/clang-cl does not exist."
68+ echo "Error: /usr/lib/llvm-18 /bin/clang-cl does not exist."
6969 exit 1
7070 fi
7171
72- if [ -f /usr/lib/llvm-17 /bin/clang ]; then
72+ if [ -f /usr/lib/llvm-18 /bin/clang ]; then
7373 if [ ! -L /usr/bin/clang ]; then
74- sudo ln -s /usr/lib/llvm-17 /bin/clang /usr/bin/clang
74+ sudo ln -s /usr/lib/llvm-18 /bin/clang /usr/bin/clang
7575 else
7676 echo "clang already linked"
7777 fi
7878 else
79- echo "Error: /usr/lib/llvm-17 /bin/clang does not exist."
79+ echo "Error: /usr/lib/llvm-18 /bin/clang does not exist."
8080 exit 1
8181 fi
8282
83- if [ -f /usr/lib/llvm-17 /bin/llvm-lib ]; then
83+ if [ -f /usr/lib/llvm-18 /bin/llvm-lib ]; then
8484 if [ ! -L /usr/bin/llvm-lib ]; then
85- sudo ln -s /usr/lib/llvm-17 /bin/llvm-lib /usr/bin/llvm-lib
85+ sudo ln -s /usr/lib/llvm-18 /bin/llvm-lib /usr/bin/llvm-lib
8686 else
8787 echo "llvm-lib already linked"
8888 fi
8989 else
90- echo "Error: /usr/lib/llvm-17 /bin/llvm-lib does not exist."
90+ echo "Error: /usr/lib/llvm-18 /bin/llvm-lib does not exist."
9191 exit 1
9292 fi
9393
94- if [ -f /usr/lib/llvm-17 /bin/lld-link ]; then
94+ if [ -f /usr/lib/llvm-18 /bin/lld-link ]; then
9595 if [ ! -L /usr/bin/lld-link ]; then
96- sudo ln -s /usr/lib/llvm-17 /bin/lld-link /usr/bin/lld-link
96+ sudo ln -s /usr/lib/llvm-18 /bin/lld-link /usr/bin/lld-link
9797 else
9898 echo "lld-link already linked"
9999 fi
100100 else
101- echo "Error: /usr/lib/llvm-17 /bin/lld-link does not exist."
101+ echo "Error: /usr/lib/llvm-18 /bin/lld-link does not exist."
102102 exit 1
103103 fi
104104
105- if [ -f /usr/lib/llvm-17 /bin/llvm-ml ]; then
105+ if [ -f /usr/lib/llvm-18 /bin/llvm-ml ]; then
106106 if [ ! -L /usr/bin/llvm-ml ]; then
107- sudo ln -s /usr/lib/llvm-17 /bin/llvm-ml /usr/bin/llvm-ml
107+ sudo ln -s /usr/lib/llvm-18 /bin/llvm-ml /usr/bin/llvm-ml
108108 else
109109 echo "llvm-ml already linked"
110110 fi
111111 else
112- echo "Error: /usr/lib/llvm-17 /bin/llvm-ml does not exist."
112+ echo "Error: /usr/lib/llvm-18 /bin/llvm-ml does not exist."
113113 exit 1
114114 fi
115115
116- if [ -f /usr/lib/llvm-17 /bin/ld.lld ]; then
116+ if [ -f /usr/lib/llvm-18 /bin/ld.lld ]; then
117117 if [ ! -L /usr/bin/ld.lld ]; then
118- sudo ln -s /usr/lib/llvm-17 /bin/ld.lld /usr/bin/ld.lld
118+ sudo ln -s /usr/lib/llvm-18 /bin/ld.lld /usr/bin/ld.lld
119119 else
120120 echo "ld.lld already linked"
121121 fi
122122 else
123- echo "Error: /usr/lib/llvm-17 /bin/ld.lld does not exist."
123+ echo "Error: /usr/lib/llvm-18 /bin/ld.lld does not exist."
124124 exit 1
125125 fi
126126
0 commit comments