BUILD.md: instructions for using clang

This commit is contained in:
Aaron Fabbri 2023-08-17 15:23:19 -07:00 committed by Peter Barker
parent c14e65850b
commit 0a14c159c3
1 changed files with 12 additions and 0 deletions

View File

@ -163,6 +163,18 @@ list some basic and more used commands as example.
./waf --targets tests/test_math ./waf --targets tests/test_math
``` ```
* **Use clang instead of gcc**
Currently, gcc is the default on linux, and clang is used for MacOS.
Building with clang on linux can be accomplished by setting the CXX
environment variables during the configure step, e.g.:
```
CXX=clang++ CC=clang ./waf configure --board=sitl
```
Note: Your clang binary names may differ.
* **Other options** * **Other options**
It's possible to see all available commands and options: It's possible to see all available commands and options: