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

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

Issue 709793002: gn win: disable 4267 (need for win x64) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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 | « base/BUILD.gn ('k') | gpu/config/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 (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 } 553 }
554 config("no_chromium_code") { 554 config("no_chromium_code") {
555 cflags = [] 555 cflags = []
556 cflags_cc = [] 556 cflags_cc = []
557 defines = [] 557 defines = []
558 558
559 if (is_win) { 559 if (is_win) {
560 cflags += [ 560 cflags += [
561 "/W3", # Warning level 3. 561 "/W3", # Warning level 3.
562 "/wd4800", # Disable warning when forcing value to bool. 562 "/wd4800", # Disable warning when forcing value to bool.
563 "/wd4267", # TODO(jschuh): size_t to int.
563 ] 564 ]
564 defines += [ 565 defines += [
565 "_CRT_NONSTDC_NO_WARNINGS", 566 "_CRT_NONSTDC_NO_WARNINGS",
566 "_CRT_NONSTDC_NO_DEPRECATE", 567 "_CRT_NONSTDC_NO_DEPRECATE",
567 ] 568 ]
568 } 569 }
569 570
570 if (is_linux) { 571 if (is_linux) {
571 # Don't warn about ignoring the return value from e.g. close(). This is 572 # Don't warn about ignoring the return value from e.g. close(). This is
572 # off by default in some gccs but on by default in others. BSD systems do 573 # off by default in some gccs but on by default in others. BSD systems do
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 cflags += [ "-gsplit-dwarf" ] 958 cflags += [ "-gsplit-dwarf" ]
958 } 959 }
959 } 960 }
960 } 961 }
961 962
962 config("no_symbols") { 963 config("no_symbols") {
963 if (!is_win) { 964 if (!is_win) {
964 cflags = [ "-g0" ] 965 cflags = [ "-g0" ]
965 } 966 }
966 } 967 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | gpu/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698