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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 927363005: Work on GN Win64 build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: underscore Created 5 years, 10 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 874
875 # This will generate warnings when using Clang if code generates exit-time 875 # This will generate warnings when using Clang if code generates exit-time
876 # destructors, which will slow down closing the program. 876 # destructors, which will slow down closing the program.
877 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 877 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600
878 config("wexit_time_destructors") { 878 config("wexit_time_destructors") {
879 if (is_clang) { 879 if (is_clang) {
880 cflags = [ "-Wexit-time-destructors" ] 880 cflags = [ "-Wexit-time-destructors" ]
881 } 881 }
882 } 882 }
883 883
884 # On Windows compiling on x64, VC will issue a warning when converting
885 # size_t to int because it will truncate the value. Our code should not have
886 # these warnings and one should use a static_cast or a checked_cast for the
887 # conversion depending on the case. However, a lot of code still needs to be
888 # fixed. Apply this config to such targets to disable the warning.
889 #
890 # Note that this can be applied regardless of platform and architecture to
891 # clean up the call sites. This will only apply the flag when necessary.
892 config("no_size_t_to_int_warning") {
893 if (is_win && cpu_arch == "x64") {
894 cflags = [ "/wd4267" ]
895 }
896 }
897
884 # Optimization ----------------------------------------------------------------- 898 # Optimization -----------------------------------------------------------------
885 # 899 #
886 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config" 900 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config"
887 # which it will assign to the config it implicitly applies to every target. If 901 # which it will assign to the config it implicitly applies to every target. If
888 # you want to override the optimization level for your target, remove this 902 # you want to override the optimization level for your target, remove this
889 # config (which will expand differently for debug or release builds), and then 903 # config (which will expand differently for debug or release builds), and then
890 # add back the one you want to override it with: 904 # add back the one you want to override it with:
891 # 905 #
892 # configs -= default_optimization_config 906 # configs -= default_optimization_config
893 # configs += [ "//build/config/compiler/optimize_max" ] 907 # configs += [ "//build/config/compiler/optimize_max" ]
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 cflags += [ "-gsplit-dwarf" ] 1067 cflags += [ "-gsplit-dwarf" ]
1054 } 1068 }
1055 } 1069 }
1056 } 1070 }
1057 1071
1058 config("no_symbols") { 1072 config("no_symbols") {
1059 if (!is_win) { 1073 if (!is_win) {
1060 cflags = [ "-g0" ] 1074 cflags = [ "-g0" ]
1061 } 1075 }
1062 } 1076 }
OLDNEW
« no previous file with comments | « no previous file | cc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698