From 4089c28370fed96e208acbd08e680601d4b7377b Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Tue, 10 Jan 2023 15:12:03 -0800 Subject: [PATCH] [gn build] Remove --rtlib=libgcc for Android builds Recent Android NDKs don't ship with libgcc --- llvm/utils/gn/build/toolchain/target_flags.gni | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/utils/gn/build/toolchain/target_flags.gni b/llvm/utils/gn/build/toolchain/target_flags.gni index 0e59aba..3c09914 100644 --- a/llvm/utils/gn/build/toolchain/target_flags.gni +++ b/llvm/utils/gn/build/toolchain/target_flags.gni @@ -15,9 +15,6 @@ if (current_os == "android") { "--sysroot=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64/sysroot", "--gcc-toolchain=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64", ] - if (current_cpu != "arm") { - target_flags += [ "-rtlib=libgcc" ] - } target_ldflags += [ "-static-libstdc++" ] if (current_cpu == "arm") { target_flags += [ "-march=armv7-a" ] -- 2.7.4