Skip to content

Conversation

compnerd
Copy link
Member

The import library thunk name suffix uses the stem of the file. We currently would attempt to trim the suffix by dropping the trailing 4 characters (under the assumption that the output name was .lib). This now uses the llvm::sys::path API for computing the stem. This avoids an assertion failure when the name is less the 4 characters and assertions are enabled.

The import library thunk name suffix uses the stem of the file. We
currently would attempt to trim the suffix by dropping the trailing 4
characters (under the assumption that the output name was `.lib`). This
now uses the `llvm::sys::path` API for computing the stem. This avoids
an assertion failure when the name is less the 4 characters and
assertions are enabled.
Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to see llvm#66532 land first, but this also seems strictly less hacky, so I'm fine with it.

@compnerd
Copy link
Member Author

This brings us closer to being able to get signal on Windows, so I think I am going to early merge this.

@compnerd compnerd merged commit e140a47 into swiftlang:stable/20230725 Sep 15, 2023
@compnerd compnerd deleted the rebranch-stem branch September 15, 2023 17:58
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