Skip to content

Commit 5dfee76

Browse files
LegNeatoclaude
andcommitted
Allow CXX bridge and Rust symbols in symbol export check
When building with SPIRV_ENABLE_RUST_TARGET_ENV, the shared library includes Rust FFI symbols from the cxx crate. Update the symbol export check to allow: - cxxbridge1$ : CXX bridge runtime symbols - spvtools$ffi$ : SPIRV-Tools Rust FFI symbols - _R : Rust v0 mangled symbols 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 10e0af7 commit 5dfee76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/check_symbol_exports.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ def check_library(library):
6161
# _ZSt : something in the standard namespace
6262
# _ZZN : something in a local scope and namespace
6363
# _Z[0-9]+spv[A-Z_] : C++ symbol starting with spv[A-Z_]
64-
symbol_ok_pattern = re.compile(r'^(spv[A-Z]|_ZN|_ZSt|_ZZN|_Z[0-9]+spv[A-Z_])')
64+
# cxxbridge1\$ : CXX bridge runtime symbols (Rust FFI)
65+
# spvtools\$ffi\$ : SPIRV-Tools Rust FFI symbols
66+
# _R : Rust mangled symbols (v0 mangling)
67+
symbol_ok_pattern = re.compile(r'^(spv[A-Z]|_ZN|_ZSt|_ZZN|_Z[0-9]+spv[A-Z_]|cxxbridge1\$|spvtools\$ffi\$|_R)')
6568

6669
# In addition, the following pattern allowlists global functions that are added
6770
# by the protobuf compiler:

0 commit comments

Comments
 (0)