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

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

Issue 2643583002: GN: Fix cross ARM64 and cross MIPS builds. (Closed)
Patch Set: . Created 3 years, 11 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 | runtime/platform/globals.h » ('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 (current_cpu == "arm") { 6 if (current_cpu == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 # compiler (r5-r7). This can be verified using 219 # compiler (r5-r7). This can be verified using
220 # webkit_unit_tests' WTF.Checked_int8_t test. 220 # webkit_unit_tests' WTF.Checked_int8_t test.
221 "-fno-tree-sra", 221 "-fno-tree-sra",
222 222
223 # The following option is disabled to improve binary 223 # The following option is disabled to improve binary
224 # size and performance in gcc 4.9. 224 # size and performance in gcc 4.9.
225 "-fno-caller-saves", 225 "-fno-caller-saves",
226 ] 226 ]
227 } 227 }
228 } else if (current_cpu == "mipsel") { 228 } else if (current_cpu == "mipsel") {
229 # Some toolchains default to big-endian.
230 cflags += [ "-EL" ]
231 ldflags += [ "-EL" ]
232
229 # We have to explicitly request exceptions to get good heap profiles from 233 # We have to explicitly request exceptions to get good heap profiles from
230 # tcmalloc. 234 # tcmalloc.
231 if (is_debug || is_release) { 235 if (is_debug || is_release) {
232 cflags += [ 236 cflags += [
233 "-fexceptions", 237 "-fexceptions",
234 "-funwind-tables", 238 "-funwind-tables",
235 ] 239 ]
236 } 240 }
237 241
238 if (mips_arch_variant == "r6") { 242 if (mips_arch_variant == "r6") {
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. 767 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue.
764 } 768 }
765 ldflags = [ "/DEBUG" ] 769 ldflags = [ "/DEBUG" ]
766 } else { 770 } else {
767 cflags = [ 771 cflags = [
768 "-g3", 772 "-g3",
769 "-ggdb3", 773 "-ggdb3",
770 ] 774 ]
771 } 775 }
772 } 776 }
OLDNEW
« no previous file with comments | « no previous file | runtime/platform/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698