From 8bd5e53777ab38b0d57ad0f07ddbc01d3c7ba58c Mon Sep 17 00:00:00 2001 From: Ian Barkley-Yeung Date: Wed, 29 Apr 2020 13:11:28 -0700 Subject: [PATCH] BUILD: Look at current_cpu instead of target_cpu Fixes build error where fuchsia_arm64 builds were failing because they picked up linux x86 code. Bug: None Change-Id: I48a7bc92490604fd2a59cb4d36421cb76f579224 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2172636 Reviewed-by: Joshua Peraza Commit-Queue: Ian Barkley-Yeung --- snapshot/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshot/BUILD.gn b/snapshot/BUILD.gn index fea22c2a..927158f2 100644 --- a/snapshot/BUILD.gn +++ b/snapshot/BUILD.gn @@ -232,7 +232,7 @@ static_library("snapshot") { ] } - if (target_cpu == "x86" || target_cpu == "x64") { + if (current_cpu == "x86" || current_cpu == "x64") { sources += [ "x86/cpuid_reader.cc", "x86/cpuid_reader.h",