Skip to content

Simplify the search of the Microsoft Linker#14

Merged
dra27 merged 1 commit intometastack:masterfrom
shym:promote-which
Nov 21, 2023
Merged

Simplify the search of the Microsoft Linker#14
dra27 merged 1 commit intometastack:masterfrom
shym:promote-which

Conversation

@shym
Copy link
Copy Markdown
Contributor

@shym shym commented Nov 17, 2023

Promote the path of the MSVC cl compiler, to avoid launching all the link commands in $PATH
Use only bash builtins, to speed up the search further

Copy link
Copy Markdown
Contributor

@dra27 dra27 left a comment

Choose a reason for hiding this comment

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

This is so much better than my original, thank you! A few tiny nits and we do need to worry about escaping still in the final output (I double-checked that my favourite C:\Devel\This 'evil' bindir added to PATH still works!), but otherwise the logic behind this is much, much nicer and not calling out to anything other than command is excellent.

Promote the path of the MSVC cl compiler, to avoid launching all the
`link` commands in $PATH
Use only bash builtins, to speed up the search further

Co-authored-by: David Allsopp <david.allsopp@metastack.com>
Copy link
Copy Markdown
Contributor

@dra27 dra27 left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@dra27 dra27 merged commit 9084b0f into metastack:master Nov 21, 2023
@shym shym deleted the promote-which branch November 22, 2023 09:34
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