Skip to content

Commit 05d9f22

Browse files
committed
Enable atomics on Windows
1 parent 74df155 commit 05d9f22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lmdb-master-sys/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ fn main() {
135135
.flag_if_supported("-Wbad-function-cast")
136136
.flag_if_supported("-Wuninitialized")
137137
// Enable atomics on Windows
138-
.flag_if_supported("/std:c11");
138+
.flag_if_supported("/std:c11")
139+
// Explicitly enable C11 atomics support
140+
.flag_if_supported("/experimental:c11atomics");
139141

140142
if cfg!(feature = "posix-sem") {
141143
builder.define("MDB_USE_POSIX_SEM", None);

0 commit comments

Comments
 (0)