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

Unified Diff: tools/relocation_packer/BUILD.gn

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/git/move_source_file.py ('k') | tools/relocation_packer/config.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/relocation_packer/BUILD.gn
diff --git a/tools/relocation_packer/BUILD.gn b/tools/relocation_packer/BUILD.gn
index e95dbcf0ea41b8fbe50debc609e4616726102d67..0b29c9162eb4fabc15fb8bf11d9658a1fb3f4f98 100644
--- a/tools/relocation_packer/BUILD.gn
+++ b/tools/relocation_packer/BUILD.gn
@@ -7,9 +7,9 @@ import("//testing/test.gni")
assert(relocation_packing_supported)
-if (target_cpu == "arm") {
+if (target_arch == "arm") {
target_define = "TARGET_ARM"
-} else if (target_cpu == "arm64") {
+} else if (target_arch == "arm64") {
target_define = "TARGET_ARM64"
}
@@ -78,7 +78,7 @@ if (current_toolchain == host_toolchain) {
}
if (current_toolchain == default_toolchain &&
- (target_cpu == "arm" || target_cpu == "arm64")) {
+ (target_arch == "arm" || target_arch == "arm64")) {
# Targets to build test data. These participate only in building test
# data for use with elf_file_unittest.cc, and are not part of the main
# relocation packer build. Unit test data files are checked in to the
@@ -102,11 +102,11 @@ if (current_toolchain == default_toolchain &&
action("relocation_packer_unittests_test_data") {
script = "test_data/generate_elf_file_unittest_relocs.py"
test_file = "$root_build_dir/librelocation_packer_test_data.so"
- if (target_cpu == "arm") {
+ if (target_arch == "arm") {
added_section = ".android.rel.dyn"
packed_output = "elf_file_unittest_relocs_arm32_packed.so"
unpacked_output = "elf_file_unittest_relocs_arm32.so"
- } else if (target_cpu == "arm64") {
+ } else if (target_arch == "arm64") {
added_section = ".android.rela.dyn"
packed_output = "elf_file_unittest_relocs_arm64_packed.so"
unpacked_output = "elf_file_unittest_relocs_arm64.so"
« no previous file with comments | « tools/git/move_source_file.py ('k') | tools/relocation_packer/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698