diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:37 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:37 +0000 |
commit | c21e0e82db0a3e9a60940f7ceea74edb5a1c4122 (patch) | |
tree | 1bf0d8d3ab7e2adab9893158a8be1f8638698e62 /build | |
parent | a3cd502bb5891548171a4bb17fe1ce351cd45ba7 (diff) | |
download | chromium_src-c21e0e82db0a3e9a60940f7ceea74edb5a1c4122.zip chromium_src-c21e0e82db0a3e9a60940f7ceea74edb5a1c4122.tar.gz chromium_src-c21e0e82db0a3e9a60940f7ceea74edb5a1c4122.tar.bz2 |
patch
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi index e2da12b..5f7740a 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -229,11 +229,14 @@ # Set this to true to enable SELinux support. 'selinux%': 0, + # Set this to true when building with Clang. + 'clang%': 1, + # Strip the binary after dumping symbols. 'linux_strip_binary%': 0, - # Enable TCMalloc. - 'linux_use_tcmalloc%': 1, + # Disable TCMalloc. It uses variable length arrays which aren't in C++. + 'linux_use_tcmalloc%': 0, # Disable TCMalloc's debugallocation. 'linux_use_debugallocation%': 0, @@ -810,6 +813,11 @@ '-Wno-unused-parameter', # Don't warn about the "struct foo f = {0};" initialization pattern. '-Wno-missing-field-initializers', + # Don't warn about unused variables, due to a common pattern: + # scoped_deleter_of_some_sort unused_variable(&thing_to_delete); + '-Wno-unused-variable', + # gtest confuses clang. + '-Wno-bool-conversions', '-D_FILE_OFFSET_BITS=64', # Don't export any symbols (for example, to plugins we dlopen()). # Note: this is *required* to make some plugins work. |