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 <jperaza@chromium.org>
Commit-Queue: Ian Barkley-Yeung <iby@chromium.org>
This commit is contained in:
Ian Barkley-Yeung 2020-04-29 13:11:28 -07:00 committed by Commit Bot
parent 174a92d296
commit 8bd5e53777

View File

@ -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",