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

Unified Diff: build/config/compiler/BUILD.gn

Issue 2034133002: 💢 target_cpu -> current_cpu in build/config/compiler/BUILD.gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 785cdf3f5bc179e8d83b726d10f82074708f9d7f..dd5b329a91c52b4bf6cf5a9f03c8fc188c2c8658 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -356,7 +356,7 @@ config("compiler") {
# TODO(crbug.com/576197) - gcc on x86 platforms + gold + icf=all
# doesn't currently work. Once it does, use icf=all everywhere.
# Additionally, on Android x86 --icf=safe seems to cause issues as well.
- if (is_clang || (target_cpu != "x86" && target_cpu != "x64")) {
+ if (is_clang || (current_cpu != "x86" && current_cpu != "x64")) {
ldflags += [ "-Wl,--icf=all" ]
} else if (!is_android) {
ldflags += [ "-Wl,--icf=safe" ]
@@ -1227,7 +1227,7 @@ if (is_win) {
# We don't omit frame pointers on arm64 since they are required
# to correctly unwind stackframes which contain system library
# function frames (crbug.com/391706).
- if (!using_sanitizer && !enable_profiling && target_cpu != "arm64") {
+ if (!using_sanitizer && !enable_profiling && current_cpu != "arm64") {
common_optimize_on_cflags += [ "-fomit-frame-pointer" ]
}
@@ -1326,7 +1326,7 @@ config("no_optimize") {
# We don't omit frame pointers on arm64 since they are required
# to correctly unwind stackframes which contain system library
# function frames (crbug.com/391706).
- if (!using_sanitizer && !enable_profiling && target_cpu != "arm64") {
+ if (!using_sanitizer && !enable_profiling && current_cpu != "arm64") {
cflags += [ "-fomit-frame-pointer" ]
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698