mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Remove the mention of setting CC, not needed anymore
@@ -145,12 +145,12 @@ ln -s ../data data
|
||||
```
|
||||
|
||||
### Clang
|
||||
Building with clang works the same way as building with GCC, you just need to change the CC and CXX environment variables. Keep in mind, that you need to have an empty build directory as cmake will not switch compilers after it has already generated a Makefile.
|
||||
Building with clang works the same way as building with GCC, you just need to change the CXX environment variable. Keep in mind, that you need to have an empty build directory as cmake will not switch compilers after it has already generated a Makefile.
|
||||
|
||||
```
|
||||
mkdir build && cd build
|
||||
export CC=$(which clang)
|
||||
export CXX=$(which clang++)
|
||||
# OpenRCT2 is purely a C++ project, there's no need to set CC
|
||||
cmake ..
|
||||
make
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user