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

Side by Side Diff: build/config/compiler/compiler.gni

Issue 2692273008: Hacky slashy (Closed)
Patch Set: fixes Created 3 years, 10 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/compiler/pgo/pgo.gni") 8 import("//build/config/compiler/pgo/pgo.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 import("//build/toolchain/goma.gni") 10 import("//build/toolchain/goma.gni")
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 # default for the PGO and the x64 builds. 65 # default for the PGO and the x64 builds.
66 if (chrome_pgo_phase > 0) { 66 if (chrome_pgo_phase > 0) {
67 full_wpo_on_official = true 67 full_wpo_on_official = true
68 } else { 68 } else {
69 full_wpo_on_official = false 69 full_wpo_on_official = false
70 } 70 }
71 } 71 }
72 72
73 declare_args() { 73 declare_args() {
74 # Whether to use the gold linker from binutils instead of lld or bfd. 74 # Whether to use the gold linker from binutils instead of lld or bfd.
75 use_gold = !use_lld && !(is_chromecast && is_linux && 75 use_gold =
76 (current_cpu == "arm" || current_cpu == "mipsel")) && 76 !use_lld && !(is_chromecast && is_linux &&
77 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || 77 (current_cpu == "arm" || current_cpu == "mipsel")) &&
78 current_cpu == "arm" || current_cpu == "mipsel")) || 78 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" ||
79 (is_android && (current_cpu == "x86" || current_cpu == "x64" || 79 current_cpu == "arm" || current_cpu == "mipsel")) ||
80 current_cpu == "arm" || current_cpu == "arm64"))) 80 (is_android && (current_cpu == "x86" || current_cpu == "x64" ||
81 current_cpu == "arm" || current_cpu == "arm64")) ||
82 is_fuchsia)
81 } 83 }
82 84
83 # If it wasn't manually set, set to an appropriate default. 85 # If it wasn't manually set, set to an appropriate default.
84 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level") 86 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level")
85 if (symbol_level == -1) { 87 if (symbol_level == -1) {
86 if (is_android && use_order_profiling) { 88 if (is_android && use_order_profiling) {
87 # With instrumentation enabled, debug info puts libchrome.so over 4gb, which 89 # With instrumentation enabled, debug info puts libchrome.so over 4gb, which
88 # causes the linker to produce an invalid ELF. http://crbug.com/574476 90 # causes the linker to produce an invalid ELF. http://crbug.com/574476
89 symbol_level = 0 91 symbol_level = 0
90 } else if (is_android && !is_component_build && 92 } else if (is_android && !is_component_build &&
(...skipping 23 matching lines...) Expand all
114 } 116 }
115 117
116 # Assert that the configuration isn't going to hit https://crbug.com/648948. 118 # Assert that the configuration isn't going to hit https://crbug.com/648948.
117 assert(ignore_elf32_limitations || !is_android || 119 assert(ignore_elf32_limitations || !is_android ||
118 (android_64bit_target_cpu && !build_apk_secondary_abi) || 120 (android_64bit_target_cpu && !build_apk_secondary_abi) ||
119 is_component_build || symbol_level < 2, 121 is_component_build || symbol_level < 2,
120 "Android 32-bit non-component builds cannot have symbol_level=2 " + 122 "Android 32-bit non-component builds cannot have symbol_level=2 " +
121 "due to 4GiB file size limit, see https://crbug.com/648948. " + 123 "due to 4GiB file size limit, see https://crbug.com/648948. " +
122 "If you really want to try this out, " + 124 "If you really want to try this out, " +
123 "set ignore_elf32_limitations=true.") 125 "set ignore_elf32_limitations=true.")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698