You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guard C++ fallback code in context_bridge.cc with SPIRV_RUST_TARGET_ENV
When building with SPIRV_RUST_TARGET_ENV defined, the C++ fallback
implementations that use spvtools::SpirvTools and spvtools::reduce::Reducer
are not needed since Rust provides these implementations.
This avoids link-time dependencies on C++ SPIRV-Tools libraries that would
create circular dependencies: spirv-tools-ffi needs symbols from SPIRV-Tools,
but SPIRV-Tools links against spirv-tools-ffi.
The guard conditionally excludes:
- #include of libspirv.hpp and reducer.h
- FormatDiagnostic helper function
- C++ SpirvTools usage in validate_binary_with_options
- C++ Reducer usage in reduce_with_cpp
0 commit comments