From dcfe2b2dc9d04e2a570ed0e4a822d42034ee6076 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 23 Oct 2019 16:31:55 -0500 Subject: [PATCH] Don't use -latomic on macOS Fixes build when using open-source clang. (Builds using Apple clang from Xcode 7 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.) Closes #30093 --- node.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index ecdecb05f4da8f..3225f5f16c2141 100644 --- a/node.gyp +++ b/node.gyp @@ -291,7 +291,7 @@ '-Wl,-bnoerrmsg', ], }], - ['OS in ("linux", "mac") and llvm_version != "0.0"', { + ['OS == "linux" and llvm_version != "0.0"', { 'libraries': ['-latomic'], }], ],