We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f7810e commit 60a1ffeCopy full SHA for 60a1ffe
1 file changed
Modules/cpython-sys/build.rs
@@ -63,6 +63,10 @@ fn generate_c_api_bindings(srcdir: &Path, builddir: Option<&str>, out_path: &Pat
63
// Suppress all clang warnings (deprecation warnings, etc.)
64
builder = builder.clang_arg("-w");
65
66
+ // Use C11 with GNU extensions so that <stdatomic.h> is available,
67
+ // required by the mimalloc headers.
68
+ builder = builder.clang_arg("-std=gnu11");
69
+
70
// Tell clang the correct target triple for cross-compilation when we have
71
// an LLVM-specific triple. Otherwise let bindgen translate Cargo's TARGET
72
// itself (e.g. aarch64-apple-ios-sim -> arm64-apple-ios-simulator).
0 commit comments