Skip to content

Commit 4eda242

Browse files
committed
Add toolchain setup instructions for Windows and Linux
1 parent de2cf16 commit 4eda242

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,23 @@ and permissions.
2727

2828
### Prerequisites
2929

30-
**Windows:** Visual Studio 2017 or newer
30+
**Windows:** [Visual Studio](https://visualstudio.microsoft.com/) 2019 or newer with the
31+
"Desktop development with C++" workload. CMake is included with Visual Studio, or install it
32+
separately from [cmake.org](https://cmake.org/download/).
3133

32-
**Linux:** Clang 15+ with libc++ installed
34+
**Linux:** Clang 15+ with libc++. Install via [apt.llvm.org](https://apt.llvm.org/):
35+
36+
```bash
37+
# Install LLVM/Clang (replace 18 with desired version)
38+
wget https://apt.llvm.org/llvm.sh
39+
chmod +x llvm.sh
40+
sudo ./llvm.sh 18
41+
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
46+
```
3347

3448
### Building
3549

0 commit comments

Comments
 (0)