| Index: site/user/tips.md
|
| diff --git a/site/user/tips.md b/site/user/tips.md
|
| index ed701792dd6ded8ad794422ffad86ec095a3271a..967146f5042b72d31e3f191167a69122448c02eb 100644
|
| --- a/site/user/tips.md
|
| +++ b/site/user/tips.md
|
| @@ -20,14 +20,24 @@ Note: Setting enviroment variables in the Windows CMD.EXE shell [uses a
|
| different syntax](/user/quick/windows#env).
|
|
|
| You can also set environment variables such as `CC`, `CXX`,
|
| -`CFLAGS`, or `CPPFLAGS` to control how Skia is compiled. For
|
| -example:
|
| +`CFLAGS`, `CXXFLAGS`, or `CPPFLAGS` to control how Skia is compiled.
|
| +To build with clang, for example:
|
|
|
| <!--?prettify lang=sh?-->
|
|
|
| CC='clang' CXX='clang++' python bin/sync-and-gyp
|
| ninja -C out/Debug
|
|
|
| +To build with clang and enable a compiler warning for unused parameters in C++
|
| +(but not C or assembly) code:
|
| +
|
| +<!--?prettify lang=sh?-->
|
| +
|
| + CXXFLAGS='-Wunused-parameter'
|
| + CC='clang' CXX='clang++' python bin/sync-and-gyp
|
| + ninja -C out/Debug
|
| +
|
| +
|
| The `GYP_GENERATORS` environment variable can be used to set the
|
| build systems that you want to use (as a comma-separated list).
|
| The default is `'ninja,msvs-ninja'` on Windows, `'ninja,xcode'` on
|
|
|