diff options
Diffstat (limited to 'site/user/tips.md')
-rw-r--r-- | site/user/tips.md | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/site/user/tips.md b/site/user/tips.md index ed701792dd..967146f504 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 |