commit | d5f84b7cd0acc564c7144213025e8ce100bbc3bd | [log] [tgz] |
---|---|---|
author | leonardchan <leonardchan@google.com> | Wed Jun 22 02:27:51 2022 +0800 |
committer | Leonard Chan <leonardchan@google.com> | Tue Jun 21 18:57:45 2022 +0000 |
tree | 6ace8af7050520035cd6ab4545c9130dcdf588e9 | |
parent | 2433bec947a77dcad888369dd7535c3d3e7cff16 [diff] |
[libipt] Do not add pt_cpuid.c if host target is arm Otherwise, we transitively include this x86-only header prebuilt/third_party/clang/linux-arm64/lib/clang/15.0.0/include/cpuid.h on host arm. Bug: 103083 Change-Id: I6d55c4b902af5d56023528b5341d0099a42958fd Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/processor-trace/+/692769 Reviewed-by: Roland McGrath <mcgrathr@google.com>
diff --git a/libipt/BUILD.gn b/libipt/BUILD.gn index eb3fe1c..e37b532 100644 --- a/libipt/BUILD.gn +++ b/libipt/BUILD.gn
@@ -76,7 +76,7 @@ "src/pt_version.c", ] - if (is_linux || is_mac) { + if ((is_linux || is_mac) && host_cpu == "x64") { sources += [ "internal/include/posix/pt_section_posix.h",