Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/testing-arm-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- ".github/**"
- "!.github/workflows/testing-arm-linux.yml"
- "packaging/**"
- "tools/halidoscope/**"
- "**/Makefile"
- "apps/support/Makefile.inc"
- 'run-clang-tidy.sh'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- ".github/**"
- "!.github/workflows/testing-linux.yml"
- "packaging/**"
- "tools/halidoscope/**"
- "**/Makefile"
- "apps/support/Makefile.inc"
- 'run-clang-tidy.sh'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- ".github/**"
- "!.github/workflows/testing-macos.yml"
- "packaging/**"
- "tools/halidoscope/**"
- "**/Makefile"
- "apps/support/Makefile.inc"
- 'run-clang-tidy.sh'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing-make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- "doc/**"
- "packaging/**"
- "python_bindings/**"
- "tools/halidoscope/**"

- "pyproject.toml"
- "uv.lock"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- ".github/**"
- "!.github/workflows/testing-windows.yml"
- "packaging/**"
- "tools/halidoscope/**"
- "**/Makefile"
- "apps/support/Makefile.inc"
- 'run-clang-tidy.sh'
Expand Down
4 changes: 3 additions & 1 deletion tools/halidoscope/src-tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ fn generate_trace_packet_bindings() -> Result<(), Box<dyn std::error::Error>> {
// Flag to cargo that we only need to rerun bindgen if HalideRuntime.h's contents have changed.
println!("cargo:rerun-if-changed={}", header.display());

// Leave bindgen in its default C mode rather than passing `-x c++`: we only need
// `halide_trace_packet_t`'s C data layout, and C++ mode pulls in MSVC's STL headers
// (`yvals_core.h`) on Windows, which reject older libclang versions with STL1000.
let bindings = bindgen::Builder::default()
.header(header.to_string_lossy())
.clang_args(["-x", "c++", "-std=c++17"])
.allowlist_type("halide_trace_packet_t")
.with_codegen_config(bindgen::CodegenConfig::TYPES | bindgen::CodegenConfig::VARS)
.derive_default(true)
Expand Down
Loading