Skip to content

[DepScanner] Do not remove the resource directory path #39945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

bnbarham
Copy link
Contributor

The clang importer sets the clang resource directory to
RuntimeResourcePath/clang (usually "lib/swift/clang", a symbolic link
into "lib/clang/"). This was inadvertently being removed in a
check to remove the clang executable path.

Modify that check to only the first argument so the resource directory
is properly passed through.

The clang importer sets the clang resource directory to
`RuntimeResourcePath`/clang (usually "lib/swift/clang", a symbolic link
into "lib/clang/<version>"). This was inadvertently being removed in a
check to remove the clang *executable* path.

Modify that check to only the first argument so the resource directory
is properly passed through.
@bnbarham bnbarham requested review from nkcsgexi and artemcm October 28, 2021 05:56
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

symbolic link into "lib/clang/")

That's interesting, github completely removes the <version> there. Guess I should have backticked it 🤷

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

Thanks!

@bnbarham bnbarham merged commit d71d31c into swiftlang:main Oct 28, 2021
@bnbarham bnbarham deleted the do-not-remove-resource-dir branch October 28, 2021 23:07
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.

3 participants