Skip to content

Commit bf296af

Browse files
committed
feat(zval): Zval coercion
1 parent 4ef666b commit bf296af

File tree

2 files changed

+533
-14
lines changed

2 files changed

+533
-14
lines changed

build.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,17 @@ fn generate_bindings(defines: &[(&str, &str)], includes: &[PathBuf]) -> Result<S
231231
// Add macOS SDK path for system headers (stdlib.h, etc.)
232232
// Required for libclang 19+ with preserve_none calling convention support
233233
#[cfg(target_os = "macos")]
234+
if let Some(sdk_path) = std::process::Command::new("xcrun")
235+
.args(["--show-sdk-path"])
236+
.output()
237+
.ok()
238+
.filter(|output| output.status.success())
234239
{
235-
if let Ok(sdk_path) = std::process::Command::new("xcrun")
236-
.args(["--show-sdk-path"])
237-
.output()
238-
{
239-
if sdk_path.status.success() {
240-
let path = String::from_utf8_lossy(&sdk_path.stdout);
241-
let path = path.trim();
242-
bindgen = bindgen
243-
.clang_arg(format!("-isysroot{}", path))
244-
.clang_arg(format!("-I{}/usr/include", path));
245-
}
246-
}
240+
let path = String::from_utf8_lossy(&sdk_path.stdout);
241+
let path = path.trim();
242+
bindgen = bindgen
243+
.clang_arg(format!("-isysroot{path}"))
244+
.clang_arg(format!("-I{path}/usr/include"));
247245
}
248246

249247
bindgen = bindgen

0 commit comments

Comments
 (0)