Skip to content

Commit 70690be

Browse files
authored
build: do not set -mminimal-toc with clang
This is a gcc-only option, do not pass to clang. PR-URL: #59484 Refs: nodejs/build#4091 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 6c215fb commit 70690be

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

common.gypi

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,12 @@
530530
'ldflags': [ '-m64' ],
531531
}],
532532
[ 'host_arch=="ppc64" and OS not in "aix os400"', {
533-
'cflags': [ '-m64', '-mminimal-toc' ],
533+
'conditions': [
534+
[ 'clang==0', {
535+
'cflags': [ '-mminimal-toc' ],
536+
}],
537+
],
538+
'cflags': [ '-m64' ],
534539
'ldflags': [ '-m64' ],
535540
}],
536541
[ 'host_arch=="s390x" and OS=="linux"', {
@@ -550,7 +555,12 @@
550555
'ldflags': [ '-m64' ],
551556
}],
552557
[ 'target_arch=="ppc64" and OS not in "aix os400"', {
553-
'cflags': [ '-m64', '-mminimal-toc' ],
558+
'conditions': [
559+
[ 'clang==0', {
560+
'cflags': [ '-mminimal-toc' ],
561+
}],
562+
],
563+
'cflags': [ '-m64' ],
554564
'ldflags': [ '-m64' ],
555565
}],
556566
[ 'target_arch=="s390x" and OS=="linux"', {

0 commit comments

Comments
 (0)