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

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

Issue 738333002: Make goma work on win GN builds. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: reformat w/ tip-of-tree gn Created 6 years 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 | build/toolchain/win/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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698