mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build: fix GN build on macOS
use_gold is not defined on macOS. PR-URL: https://github.com/nodejs/node/pull/56141 Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
@@ -263,7 +263,7 @@ template("node_gn_build") {
|
||||
ldflags = [ "/OPT:NOICF" ] # link.exe, but also lld-link.exe.
|
||||
} else if (is_apple && !use_lld) {
|
||||
ldflags = [ "-Wl,-no_deduplicate" ] # ld64.
|
||||
} else if (use_gold || use_lld) {
|
||||
} else if ((!is_apple && use_gold) || use_lld) {
|
||||
ldflags = [ "-Wl,--icf=none" ]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user