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

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

Issue 533853002: Minor fixes for the GN Windows build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « build/compiled_action.gni ('k') | components/pdf/renderer/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")
11 } 11 }
12 12
13 declare_args() { 13 declare_args() {
14 # Normally, Android builds are lightly optimized, even for debug builds, to 14 # Normally, Android builds are lightly optimized, even for debug builds, to
15 # keep binary size down. Setting this flag to true disables such optimization 15 # keep binary size down. Setting this flag to true disables such optimization
16 android_full_debug = false 16 android_full_debug = false
17 } 17 }
18 18
19 use_gold = is_linux && cpu_arch == "x64" 19 use_gold = is_linux && cpu_arch == "x64"
20 20
21 # linux_use_debug_fission: whether to use split DWARF debug info 21 if (!is_win) {
22 # files. This can reduce link time significantly, but is incompatible 22 # linux_use_debug_fission: whether to use split DWARF debug info
23 # with some utilities such as icecc and ccache. Requires gold and 23 # files. This can reduce link time significantly, but is incompatible
24 # gcc >= 4.8 or clang. 24 # with some utilities such as icecc and ccache. Requires gold and
25 # http://gcc.gnu.org/wiki/DebugFission 25 # gcc >= 4.8 or clang.
26 # 26 # http://gcc.gnu.org/wiki/DebugFission
27 # TODO(GYP) enable this. Currently this gives errors from objcopy, presumably 27 #
28 # because some other symbol or toolchain setting isn't correct. 28 # TODO(GYP) enable this. Currently this gives errors from objcopy, presumably
29 #use_debug_fission = use_gold 29 # because some other symbol or toolchain setting isn't correct.
30 use_debug_fission = false 30 #use_debug_fission = use_gold
31 use_debug_fission = false
32 }
31 33
32 # default_include_dirs --------------------------------------------------------- 34 # default_include_dirs ---------------------------------------------------------
33 # 35 #
34 # This is a separate config so that third_party code (which would not use the 36 # This is a separate config so that third_party code (which would not use the
35 # source root and might have conflicting versions of some headers) can remove 37 # source root and might have conflicting versions of some headers) can remove
36 # this and specify their own include paths. 38 # this and specify their own include paths.
37 config("default_include_dirs") { 39 config("default_include_dirs") {
38 include_dirs = [ 40 include_dirs = [
39 "//", 41 "//",
40 root_gen_dir, 42 root_gen_dir,
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 cflags += [ "-gsplit-dwarf" ] 910 cflags += [ "-gsplit-dwarf" ]
909 } 911 }
910 } 912 }
911 } 913 }
912 914
913 config("no_symbols") { 915 config("no_symbols") {
914 if (!is_win) { 916 if (!is_win) {
915 cflags = [ "-g0" ] 917 cflags = [ "-g0" ]
916 } 918 }
917 } 919 }
OLDNEW
« no previous file with comments | « build/compiled_action.gni ('k') | components/pdf/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698