Skip to content

Replace libtool shell template with C++#388

Merged
keith merged 6 commits intomasterfrom
ks/replace-libtool-shell-template-with-c
Mar 28, 2025
Merged

Replace libtool shell template with C++#388
keith merged 6 commits intomasterfrom
ks/replace-libtool-shell-template-with-c

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Mar 27, 2025

This combines libtool.sh.tpl, libtool_check_unique.cc, xcrunwrapper.sh,
and make_hashed_objlist.py into a single C++ driver.

This sidesteps issues with our toolchain tools having to discover
each other, and reduces some duplication in this setup.

keith added 4 commits March 27, 2025 15:31
This combines libtool.sh.tpl, libtool_check_unique.cc, xcrunwrapper.sh,
and make_hashed_objlist.py into a single C++ driver.

This sidesteps issues with our toolchain tools having to discover
each other, and reduces some duplication in this setup.
@keith keith marked this pull request as ready for review March 27, 2025 23:05
@adincebic
Copy link
Copy Markdown
Contributor

Is there a reason why not use Swift and SwiftArgumentParser instead of cpp?

@keith
Copy link
Copy Markdown
Member Author

keith commented Mar 28, 2025

There's a bit of a circular dependency problem as this file is required to produce any swift_library. In general the toolchain files are much easier to manage if they're single files. For just swift with no deps vs C++ the downside of using swift is that we're likely more susceptible to having to fight user's Xcode versions.

@keith keith merged commit 525cdda into master Mar 28, 2025
10 checks passed
@keith keith deleted the ks/replace-libtool-shell-template-with-c branch March 28, 2025 17:38
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