[docs] Update new_project_guide.md to be explicit about linking with clang++.

This regularly comes up, e.g. https://github.com/google/oss-fuzz/issues/1961.
This commit is contained in:
Max Moroz 2018-11-19 14:04:12 -08:00 committed by GitHub
parent 76686d085b
commit 4e3be11bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,8 @@ When build.sh script is executed, the following locations are available within t
While files layout is fixed within a container, the environment variables are
provided to be able to write retargetable scripts.
### Requirements
You *must* use the special compiler flags needed to build your project and fuzz targets.
These flags are provided in the following environment variables:
@ -188,6 +190,8 @@ These flags are provided in the following environment variables:
| `$CC`, `$CXX`, `$CCC` | The C and C++ compiler binaries.
| `$CFLAGS`, `$CXXFLAGS` | C and C++ compiler flags.
You *must* use `$CXX` as a linker, even if you project is written in pure C.
Most well-crafted build scripts will automatically use these variables. If not,
pass them manually to the build tool.