Skip to content

Commit dedcbec

Browse files
author
Greg Parker
committed
Fix Linux build, maybe.
1 parent 5ed05f5 commit dedcbec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function(_add_variant_link_flags)
325325
RESULT_VAR_NAME result)
326326

327327
if("${LFLAGS_SDK}" STREQUAL "LINUX")
328-
list(APPEND result "-lpthread" "-ldl")
328+
list(APPEND result "-lpthread" "-ldl" "-latomic")
329329
elseif("${LFLAGS_SDK}" STREQUAL "FREEBSD")
330330
list(APPEND result "-lpthread")
331331
elseif("${LFLAGS_SDK}" STREQUAL "CYGWIN")

0 commit comments

Comments
 (0)