summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorRyan Schmidt <git@ryandesign.com>2019-10-23 16:31:55 -0500
committerRuben Bridgewater <ruben@bridgewater.de>2020-01-02 17:58:20 +0100
commit4bd0d8c22ca65ba2bd02c671048a99e414f049b8 (patch)
treec1230ea75175175bbc807b1661c79a90eeba7e44 /node.gyp
parentc7f328f0dfa961399b40d874cc8053841dcdc20a (diff)
downloadnode-new-4bd0d8c22ca65ba2bd02c671048a99e414f049b8.tar.gz
build: don't use -latomic on macOS
Fixes build when using open-source clang. Builds using Apple clang from Xcode v7 and later were already working, due to the fact that node's build system misidentifies their llvm_version as "0.0" and thus the flag wasn't being added. PR-URL: https://github.com/nodejs/node/pull/30099 Fixes: https://github.com/nodejs/node/issues/30093 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.gyp b/node.gyp
index 781dcee81a..9389aa4246 100644
--- a/node.gyp
+++ b/node.gyp
@@ -298,7 +298,7 @@
'-Wl,-bnoerrmsg',
],
}],
- ['OS in ("linux", "mac") and llvm_version != "0.0"', {
+ ['OS == "linux" and llvm_version != "0.0"', {
'libraries': ['-latomic'],
}],
],