Source code
Revision control
Copy as Markdown
Other Tools
From: Michael Froman <mfroman@mozilla.com>
Date: Mon, 7 Jul 2025 20:46:00 -0500
'clang_lib("compiler_builtins")' target
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/cf812ff032ed58f1b396d24bde810b127dd24907
---
config/clang/BUILD.gn | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/config/clang/BUILD.gn b/config/clang/BUILD.gn
index 0d648fa31..beb81db98 100644
--- a/config/clang/BUILD.gn
+++ b/config/clang/BUILD.gn
@@ -252,6 +252,10 @@ template("clang_lib") {
# Adds a dependency on the Clang runtime library clang_rt.builtins.
clang_lib("compiler_builtins") {
+# Mozilla: in the past, this checked for !toolchain_has_rust, and
+# effectively made this section a no-op. We'll make it a definite
+# no-op. Without this, we see errors during generation.
+if (false) {
if (is_mac) {
libname = "osx"
} else if (is_ios) {
@@ -280,6 +284,7 @@ clang_lib("compiler_builtins") {
libname = "builtins"
}
}
+}
# Adds a dependency on the Clang runtime library clang_rt.profile.
clang_lib("compiler_profile") {