From e62c41261fb73a558dd166bd8d07ea2a7659c857 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 6 Oct 2024 14:46:16 +0800 Subject: [PATCH] build: Never explicitly link clang_rt.builtins https://chromium-review.googlesource.com/c/chromium/src/+/5723176 --- src/build/config/clang/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/build/config/clang/BUILD.gn b/src/build/config/clang/BUILD.gn index fcca59b0f0..ec49f00bbe 100644 --- a/src/build/config/clang/BUILD.gn +++ b/src/build/config/clang/BUILD.gn @@ -237,7 +237,10 @@ template("clang_lib") { # Adds a dependency on the Clang runtime library clang_rt.builtins. clang_lib("compiler_builtins") { - if (is_mac) { + if (true) { + # NaiveProxy doesn't use Rust and never links clang_rt.builtins. + # Don't define libname which makes this target do nothing. + } else if (is_mac) { libname = "osx" } else if (is_ios) { if (target_environment == "simulator") {