Skip to content

[build-script] Add an option to force the linker used. #79329

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

Conversation

gottesmm
Copy link
Contributor

I have been doing this using extra-cmake-args/etc... just feels better to have an actual option to do this.

Just did this quickly while waiting for my Linux build to finish that uses extra-cmake-args to set the linker.

I have been doing this using extra-cmake-args/etc... just feels better to have
an actual option to do this.

Just did this quickly while waiting for my Linux build to finish that uses
extra-cmake-args to set the linker.
@gottesmm gottesmm requested a review from etcwilde February 12, 2025 19:49
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@@ -644,6 +644,12 @@ def create_argument_parser():
'`bootstrapping-with-hostlibs`, `crosscompile`, and '
'`crosscompile-with-hostlibs`')

option('--use-linker', store('use_linker'),
choices=['gold', 'lld'],
Copy link
Member

Choose a reason for hiding this comment

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

Newer versions of the GNU bfd linker works on newer platforms now too and IIRC gold is going away so I don't think we should block using it anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that bfd doesn't have a specific name... so people will just get it by not setting the flag.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge February 14, 2025 01:05
@gottesmm
Copy link
Contributor Author

@swift-ci test windows platform

@gottesmm gottesmm merged commit f68e23a into swiftlang:main Feb 15, 2025
3 checks passed
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