From e25e899f68e3fce81f16705f0736d73408f1bc3b Mon Sep 17 00:00:00 2001 From: Holden Warriner Date: Fri, 26 Jul 2024 16:40:39 -0400 Subject: [PATCH] Define a native_target toolchain for android-arm64 (#3901) This is unused for now but will be used to build crashpad_handler for Evergreen-AOSP on arm64. b/355499070 --- starboard/android/arm64/toolchain/BUILD.gn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/starboard/android/arm64/toolchain/BUILD.gn b/starboard/android/arm64/toolchain/BUILD.gn index 923694b02a6b..96ccf4540899 100644 --- a/starboard/android/arm64/toolchain/BUILD.gn +++ b/starboard/android/arm64/toolchain/BUILD.gn @@ -29,3 +29,19 @@ gcc_toolchain("target") { is_clang = true } } + +gcc_toolchain("native_target") { + prefix = rebase_path("$android_toolchain_path/bin", root_build_dir) + cc = "$prefix/aarch64-linux-android${android_ndk_api_level}-clang" + cxx = "$prefix/aarch64-linux-android${android_ndk_api_level}-clang++" + ld = cxx + readelf = "readelf" + ar = "ar" + nm = "nm" + + toolchain_args = { + is_starboard = false + is_native_target_build = true + is_clang = true + } +}