Skip to content

Commit 78f2389

Browse files
committed
what a silly typo
1 parent ebf7866 commit 78f2389

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/cpython-sys/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ fn generate_c_api_bindings(srcdir: &Path, builddir: Option<&str>, out_path: &Pat
155155
// broken one (e.g. libclang-18 on Ubuntu 24.04). Using -isystem places
156156
// it after -I paths but before the default system headers, so it only
157157
// takes effect when the real <stdatomic.h> is unusable.
158-
let fallback_dir = manifest_dir.join("bindgen-fallback");
158+
let fallback_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
159+
.join("bindgen-fallback");
159160
builder = builder.clang_arg(format!("-isystem{}", fallback_dir.display()));
160161

161162
builder = add_target_clang_args(builder, builddir);

0 commit comments

Comments
 (0)