summaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-build_config_clang_BUILD.gn
blob: cf1978f32987fc13084aab2e1db3af01347f0955 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- build/config/clang/BUILD.gn.orig	2025-06-30 07:04:30 UTC
+++ build/config/clang/BUILD.gn
@@ -263,7 +263,12 @@ clang_lib("compiler_builtins") {
 
 # Adds a dependency on the Clang runtime library clang_rt.builtins.
 clang_lib("compiler_builtins") {
-  if (is_mac) {
+  if (is_bsd) {
+    # Since there's no Rust in the toolchain, there's no concern that we'll use
+    # the Rust stdlib's intrinsics here.
+    #
+    # Don't define libname which makes this target do nothing.
+  } else if (is_mac) {
     libname = "osx"
   } else if (is_ios) {
     if (target_platform == "iphoneos") {