-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build-script] Add buildbot_linux,lld preset #77635
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
base: main
Are you sure you want to change the base?
Conversation
@swift-ci please smoke test |
preset=buildbot_linux,lld |
This patch adds a preset that defaults the toolchain to use lld instead of gold on Linux. Added presets are - `buildbot_linux,lld` - `buildbot_linux,lld,no_assertions` - `buildbot_linux,lld,no_test` - `buildbot_linux,lld,no_assertions,no_test`
Switching presets to use the `use-linker` flag consistently instead of setting the CMake variables directly.
fdcd4a9
to
db6d408
Compare
@swift-ci please test |
preset=buildbot_linux,lld |
Why is the preset called build bot? Can this preset be used for local builds as well? |
Staying consistent with what was there and to indicate that it's for the CI buildbots. Yes, you can use it for local builds if you want to replicate the configuration that CI is using to produce toolchains, though it might take longer than needed for normal development since it builds the entire toolchain instead of just pieces of it. I usually use a more stripped down |
Talking about more stripped down builds. What if I just want to build in debug mode: lib/sema (which is part of swift host tools afaik)? I thought —debug-swift would do it but it regresses. Can I build in debug single libraries like lib/sema without having to fiddle in CMakeLists.txt? |
Linux Preset Testing Failure:
|
@swift-ci please test |
lld doesn't support zlib-gnu debug info compression. Gate that part of the test on the ability to compile with that compression format.
300cdf6
to
1557fdf
Compare
@swift-ci please test |
This patch adds a preset that defaults the toolchain to use lld instead of gold on Linux.
Added presets are
buildbot_linux,lld
buildbot_linux,lld,no_assertions
buildbot_linux,lld,no_test
buildbot_linux,lld,no_assertions,no_test