Skip to content

Commit fd1a70a

Browse files
committed
Use CC/CXX env vars instead of update-alternatives
1 parent 4eda242 commit fd1a70a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ wget https://apt.llvm.org/llvm.sh
3939
chmod +x llvm.sh
4040
sudo ./llvm.sh 18
4141
sudo apt-get install -y libc++-18-dev libc++abi-18-dev
42-
43-
# Set as default compiler
44-
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-18 100
45-
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-18 100
4642
```
4743

4844
### Building
@@ -60,7 +56,7 @@ cmake --build build --config Release
6056

6157
**Linux:**
6258
```bash
63-
cmake -B build -DCMAKE_BUILD_TYPE=Release
59+
CC=clang-18 CXX=clang++-18 cmake -B build -DCMAKE_BUILD_TYPE=Release
6460
cmake --build build
6561
```
6662

0 commit comments

Comments
 (0)