mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
12 lines
641 B
TOML
12 lines
641 B
TOML
# Keep this override scoped to the Rspack workspace. The repository root
|
|
# config uses rust-lld for macOS, which Turbopack also depends on, so avoid
|
|
# changing the root linker behavior for a Rspack-only release build issue.
|
|
#
|
|
# Rspack 0.100.4 pulls in build scripts that still emit a standalone `-Wl`
|
|
# cdylib link arg on macOS. That flag is meant for clang/cc drivers and is not
|
|
# accepted by direct rust-lld. Point Rspack macOS builds at a tiny rust-lld
|
|
# wrapper that drops only that unsupported forwarding marker while preserving
|
|
# the root config's rust-lld/ICF behavior.
|
|
[target.'cfg(target_os = "macos")']
|
|
linker = "scripts/rust-lld"
|