diff --git a/rust/config/global.go b/rust/config/global.go index fb6227804..182dc6ac2 100644 --- a/rust/config/global.go +++ b/rust/config/global.go @@ -47,6 +47,8 @@ var ( "-C debuginfo=2", "-C opt-level=3", "-C relocation-model=pic", + // Use v0 mangling to distinguish from C++ symbols + "-Z symbol-mangling-version=v0", } deviceGlobalRustFlags = []string{