Skip to content

Commit b0bfc02

Browse files
committed
fixup: use LLVM_ATOMIC_LIB to link atomics
1 parent 1cf6159 commit b0bfc02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mlir/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ list(INSERT CMAKE_MODULE_PATH 0
6969

7070
include(AddMLIR)
7171
include(IRDLToCpp)
72+
include(CheckAtomic)
7273

7374
# -BSymbolic is incompatible with TypeID
7475
if("${CMAKE_SHARED_LINKER_FLAGS}" MATCHES "-Bsymbolic[^-]")

mlir/lib/IR/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ add_mlir_library(MLIRIR
6969
LINK_LIBS PUBLIC
7070
MLIRSupport
7171
PRIVATE
72-
atomic
72+
${LLVM_ATOMIC_LIB}
7373
)
7474

0 commit comments

Comments
 (0)