mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Reported by: mikael Obtained from: https://cgit.freebsd.org/ports/commit/?id=2ea9b7459046eac3f7f3fcd7515cb0fb0340fccb
25 lines
1 KiB
Text
25 lines
1 KiB
Text
--- build/rust/cargo_crate.gni.orig 2024-10-18 12:33:59 UTC
|
|
+++ build/rust/cargo_crate.gni
|
|
@@ -273,6 +273,12 @@ template("cargo_crate") {
|
|
# Don't import the `chromium` crate into third-party code.
|
|
no_chromium_prelude = true
|
|
|
|
+ # Don't depend on the chrome-specific #[global_allocator] crate from
|
|
+ # third-party code. This avoids some dependency cycle issues. The allocator
|
|
+ # crate will still be used if it exists anywhere in the dependency graph for
|
|
+ # a given linked artifact.
|
|
+ no_allocator_crate = true
|
|
+
|
|
rustc_metadata = _rustc_metadata
|
|
|
|
# TODO(crbug.com/40259764): don't default to true. This requires changes to
|
|
@@ -466,6 +472,9 @@ template("cargo_crate") {
|
|
|
|
# Don't import the `chromium` crate into third-party code.
|
|
no_chromium_prelude = true
|
|
+
|
|
+ # Build scripts do not need to link to chrome's allocator.
|
|
+ no_allocator_crate = true
|
|
|
|
# The ${_build_script_name}_output target looks for the exe in this
|
|
# location. Due to how the Windows component build works, this has to
|