aboutsummaryrefslogtreecommitdiffstats
path: root/devel/electron35/files/patch-build_rust_rust__macro.gni
blob: 0dafc3819aa1289172403e7d04285d635e275dd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- build/rust/rust_macro.gni.orig	2025-05-20 09:16:26 UTC
+++ build/rust/rust_macro.gni
@@ -16,6 +16,9 @@ template("rust_macro") {
     forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
     proc_macro_configs = invoker.configs
     target_type = "rust_proc_macro"
+
+    # Macros are loaded by rustc and shouldn't use chrome's allocation routines.
+    no_allocator_crate = true
   }
 }