Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: site/user/tips.md

Issue 1495913002: Make building with clang documentation a bit easier to find (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « site/user/quick/linux.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « site/user/quick/linux.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698