Skip to content

Commit 4089c28

Browse files
committed
[gn build] Remove --rtlib=libgcc for Android builds
Recent Android NDKs don't ship with libgcc
1 parent b2a8d2c commit 4089c28

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/utils/gn/build/toolchain/target_flags.gni

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ if (current_os == "android") {
1515
"--sysroot=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64/sysroot",
1616
"--gcc-toolchain=$android_ndk_path/toolchains/llvm/prebuilt/linux-x86_64",
1717
]
18-
if (current_cpu != "arm") {
19-
target_flags += [ "-rtlib=libgcc" ]
20-
}
2118
target_ldflags += [ "-static-libstdc++" ]
2219
if (current_cpu == "arm") {
2320
target_flags += [ "-march=armv7-a" ]

0 commit comments

Comments
 (0)