mirror of https://github.com/ArduPilot/ardupilot
BUILD.md: instructions for using clang
This commit is contained in:
parent
c14e65850b
commit
0a14c159c3
12
BUILD.md
12
BUILD.md
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue