This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Handle GCC collect2 -plugin-opt= on Windows
ClosedPublic

Authored by bwerl on Nov 15 2022, 2:36 PM.

Details

Summary

Follows up on commit cd5d5ce235081005173566c99c592550021de058 by
additionally ignoring relative paths ending in "lto-wrapper.exe" as
can be the case for GCC cross-compiled for Windows.

Diff Detail

Event Timeline

bwerl created this revision.Nov 15 2022, 2:36 PM
Herald added a project: Restricted Project. · View Herald Transcript
bwerl requested review of this revision.Nov 15 2022, 2:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 2:36 PM

Seems fine to me but can you also update lld/test/ELF/lto-plugin-ignore.s to test this case?

bwerl added a comment.Nov 15 2022, 7:41 PM

Seems fine to me but can you also update lld/test/ELF/lto-plugin-ignore.s to test this case?

Sure, that makes sense, and will do.

bwerl updated this revision to Diff 475668.Nov 15 2022, 7:52 PM

Made the suggested change to lld/test/ELF/lto-plugin-ignore.s

This revision is now accepted and ready to land.Nov 16 2022, 6:15 AM
bwerl added a comment.Nov 16 2022, 8:07 AM

@tejohnson, Thanks for the review! I'm a newbie here, not sure that I have the ability to commit or see this all the way through. Is there any further action required on my part?

@tejohnson, Thanks for the review! I'm a newbie here, not sure that I have the ability to commit or see this all the way through. Is there any further action required on my part?

I can commit it for you today. If you plan to become an LLVM developer see the instructions here to obtain commit access: https://llvm.org/docs/Contributing.html#for-developers-to-commit-changes-from-git

This revision was automatically updated to reflect the committed changes.

@tejohnson, forgive my ignorance - Will this be included in an upcoming release, and if so do you know when that would be? Any chance it could be back-ported to the 15.0.x release track?

@tejohnson, forgive my ignorance - Will this be included in an upcoming release, and if so do you know when that would be? Any chance it could be back-ported to the 15.0.x release track?

I think by default it would be released with 16.x, but it could presumably be backported to the next 15.0.x release.

I haven't done this before, but it looks like to get this backported to 15.0.5 you could follow the instructions at https://llvm.org/docs/GitHub.html to create an issue here:
https://github.com/llvm/llvm-project/milestone/16

and then add the necessary cherrypick command to it as described in the instructions. Is that something you can try? I haven't done it myself but let me know if you run into issues.