Skip to content

Commit 4108b24

Browse files
LegNeatoclaude
andcommitted
Allow Rust runtime symbols in symbol export check
Add rust_ prefix to the allowed symbol patterns to allow rust_eh_personality and other Rust runtime symbols. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5dfee76 commit 4108b24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/check_symbol_exports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def check_library(library):
6464
# cxxbridge1\$ : CXX bridge runtime symbols (Rust FFI)
6565
# spvtools\$ffi\$ : SPIRV-Tools Rust FFI symbols
6666
# _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)')
67+
# rust_ : Rust runtime symbols (eh_personality, etc.)
68+
symbol_ok_pattern = re.compile(r'^(spv[A-Z]|_ZN|_ZSt|_ZZN|_Z[0-9]+spv[A-Z_]|cxxbridge1\$|spvtools\$ffi\$|_R|rust_)')
6869

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

0 commit comments

Comments
 (0)