Skip to content

Commit ab3174c

Browse files
committed
build: link libatomic on mac and linux
Fixes nodejs#28231 PR-URL: nodejs#28232 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e6edd66 commit ab3174c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

node.gyp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@
289289
'-Wl,-bnoerrmsg',
290290
],
291291
}],
292+
['(OS=="linux" or OS=="mac") and llvm_version!=0', {
293+
'libraries': ['-latomic'],
294+
}],
292295
],
293296
},
294297

0 commit comments

Comments
 (0)