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

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

Issue 2661023010: Allow using goma on Windows with symbol_level == 2 (Closed)
Patch Set: Fix assert placement 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 # Linux is slowed by having symbols as part of the target binary, whereas 104 # Linux is slowed by having symbols as part of the target binary, whereas
105 # Mac and Windows have them separate, so in Release Linux, default them off, 105 # Mac and Windows have them separate, so in Release Linux, default them off,
106 # but keep them on for Official builds and Chromecast builds. 106 # but keep them on for Official builds and Chromecast builds.
107 symbol_level = 2 107 symbol_level = 2
108 } else if (using_sanitizer) { 108 } else if (using_sanitizer) {
109 # Sanitizers require symbols for filename suppressions to work. 109 # Sanitizers require symbols for filename suppressions to work.
110 symbol_level = 1 110 symbol_level = 1
111 } else { 111 } else {
112 symbol_level = 0 112 symbol_level = 0
113 } 113 }
114 } else if (symbol_level == 2) {
115 assert(is_win_fastlink || !use_goma,
116 "Goma builds that use symbol_level 2 must use is_win_fastlink.")
114 } 117 }
115 118
116 # Assert that the configuration isn't going to hit https://crbug.com/648948. 119 # Assert that the configuration isn't going to hit https://crbug.com/648948.
117 assert(ignore_elf32_limitations || !is_android || 120 assert(ignore_elf32_limitations || !is_android ||
118 (android_64bit_target_cpu && !build_apk_secondary_abi) || 121 (android_64bit_target_cpu && !build_apk_secondary_abi) ||
119 is_component_build || symbol_level < 2 || is_clang, 122 is_component_build || symbol_level < 2 || is_clang,
120 "Android 32-bit non-component, non-clang builds cannot have " + 123 "Android 32-bit non-component, non-clang builds cannot have " +
121 "symbol_level=2 due to 4GiB file size limit, see " + 124 "symbol_level=2 due to 4GiB file size limit, see " +
122 "https://crbug.com/648948. If you really want to try this out, " + 125 "https://crbug.com/648948. If you really want to try this out, " +
123 "set ignore_elf32_limitations=true.") 126 "set ignore_elf32_limitations=true.")
OLDNEW
« build/config/compiler/BUILD.gn ('K') | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698