ports/devel/electron32/files/patch-build_rust_rust__macro.gni

12 lines
398 B
Text

--- 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
}
}