Skip to content

Fix build failures when calling swift isSwiftSymbol - #507

Merged
jriv01 merged 1 commit into
google:mainfrom
jriv01:is-swift-symbol
Sep 2, 2026
Merged

Fix build failures when calling swift isSwiftSymbol#507
jriv01 merged 1 commit into
google:mainfrom
jriv01:is-swift-symbol

Conversation

@jriv01

@jriv01 jriv01 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Fixes linker errors caused by passing string_view directly to swift::Demangle::isSwiftSymbol()

Depending on the Swift demangler version & environment, directly passing standard C++ string_view can trigger undefined symbol linker failures.

Using .c_str() should work more reliably across all versions of Swift.

@jriv01
jriv01 requested a review from haberman September 1, 2026 18:36
@jriv01
jriv01 merged commit 6efc783 into google:main Sep 2, 2026
15 checks passed
@jriv01
jriv01 deleted the is-swift-symbol branch September 2, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants