mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
Some gcc flags dont work on clang:
-mfprnd
-mno-popcntb
-fno-extern-tls-init
So now we conditionally add them when clang is not enabled
Also for clang builds we need to pass some additonal flags:
-fno-integrated-as
-fno-xl-pragma-pack
These flags are discuessed in:
https://chromium-review.googlesource.com/c/chromium/src/+/7120638
PR-URL: https://github.com/nodejs/node/pull/62656
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
(cherry picked from commit 48a442be08)