OLD | NEW |
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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 } | 948 } |
949 } else { | 949 } else { |
950 cflags += [ "-O2" ] | 950 cflags += [ "-O2" ] |
951 } | 951 } |
952 } | 952 } |
953 | 953 |
954 # Symbols ---------------------------------------------------------------------- | 954 # Symbols ---------------------------------------------------------------------- |
955 | 955 |
956 config("symbols") { | 956 config("symbols") { |
957 if (is_win) { | 957 if (is_win) { |
958 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. | 958 import("//build/toolchain/goma.gni") |
| 959 if (use_goma) { |
| 960 cflags = [ "/Z7" ] # No PDB file |
| 961 } else { |
| 962 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
| 963 } |
959 ldflags = [ "/DEBUG" ] | 964 ldflags = [ "/DEBUG" ] |
960 } else { | 965 } else { |
961 cflags = [ "-g2" ] | 966 cflags = [ "-g2" ] |
962 if (use_debug_fission) { | 967 if (use_debug_fission) { |
963 cflags += [ "-gsplit-dwarf" ] | 968 cflags += [ "-gsplit-dwarf" ] |
964 } | 969 } |
965 } | 970 } |
966 } | 971 } |
967 | 972 |
968 config("minimal_symbols") { | 973 config("minimal_symbols") { |
969 if (is_win) { | 974 if (is_win) { |
970 # Linker symbols for backtraces only. | 975 # Linker symbols for backtraces only. |
971 ldflags = [ "/DEBUG" ] | 976 ldflags = [ "/DEBUG" ] |
972 } else { | 977 } else { |
973 cflags = [ "-g1" ] | 978 cflags = [ "-g1" ] |
974 if (use_debug_fission) { | 979 if (use_debug_fission) { |
975 cflags += [ "-gsplit-dwarf" ] | 980 cflags += [ "-gsplit-dwarf" ] |
976 } | 981 } |
977 } | 982 } |
978 } | 983 } |
979 | 984 |
980 config("no_symbols") { | 985 config("no_symbols") { |
981 if (!is_win) { | 986 if (!is_win) { |
982 cflags = [ "-g0" ] | 987 cflags = [ "-g0" ] |
983 } | 988 } |
984 } | 989 } |
OLD | NEW |