GN: Add wexit_time_destructors config.

Review URL: https://codereview.chromium.org/135733006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245034 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
bbudge@chromium.org 2014-01-16 00:24:10 +00:00
Родитель 50cebd6fc2
Коммит 637b7c77e2
1 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -11,7 +11,7 @@ if (cpu_arch == "arm") {
# compiler ---------------------------------------------------------------------
#
# Base compiler configuration.
#
#
# See also "runtime_library" below for related stuff and a discusison about
# where stuff should go. Put warning related stuff in the "warnings" config.
@ -469,7 +469,7 @@ config("no_rtti") {
# Warnings ---------------------------------------------------------------------
#
# This is where we disable various warnings that we've decided aren't
# worthwhile.
# worthwhile, and enable special warnings.
config("default_warnings") {
if (is_win) {
@ -580,6 +580,15 @@ config("default_warnings") {
}
}
# This will generate warnings when using Clang if code generates exit-time
# destructors, which will slow down closing the program.
# TODO(thakis): Make this a blacklist instead, http://crbug.com/101600
config("wexit_time_destructors") {
if (is_clang) {
cflags = [ "-Wexit-time-destructors" ]
}
}
# Optimization -----------------------------------------------------------------
#
# Note that BUILDCONFIG.gn sets up a variable "default_optimization_config"
@ -676,3 +685,4 @@ config("no_symbols") {
cflags = [ "-g0" ]
}
}