Skip to content

Commit e2732b8

Browse files
LegNeatoclaude
andcommitted
Fix Bazel build by skipping C++ library linking
Set SPIRV_TOOLS_FFI_SKIP_CPP_LINK=1 in the Bazel build script so that build.rs doesn't try to link SPIRV-Tools C++ libraries during cargo build. Bazel handles the final linking separately. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9be2522 commit e2732b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/scripts/build_rust_ffi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def main() -> int:
5151

5252
env = os.environ.copy()
5353
env["CARGO_TARGET_DIR"] = str(target_dir)
54+
# Skip linking C++ SPIRV-Tools libraries - Bazel will link them at final link time
55+
env["SPIRV_TOOLS_FFI_SKIP_CPP_LINK"] = "1"
5456

5557
package = args.package
5658
command = [

0 commit comments

Comments
 (0)