From cb89fbcafc47b2e76090ae34ce6a107a0a67dda5 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 23 Oct 2019 16:31:55 -0500 Subject: [PATCH] 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 Reviewed-By: Ruben Bridgewater --- node.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index 8dc4355e25cda6..44750979c4eb85 100644 --- a/node.gyp +++ b/node.gyp @@ -292,7 +292,7 @@ '-Wl,-bnoerrmsg', ], }], - ['OS in ("linux", "mac") and llvm_version != "0.0"', { + ['OS == "linux" and llvm_version != "0.0"', { 'libraries': ['-latomic'], }], ],