Skip to content

Commit ca3d785

Browse files
committed
Enable atomics on Windows
1 parent 934913c commit ca3d785

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
// On Windows, link explicitly advapi32 for security functions
141143
#[cfg(target_os = "windows")]

0 commit comments

Comments
 (0)