Skip to content

Commit fdcd4a9

Browse files
committed
[build-script] Add buildbot_linux,lld preset
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`
1 parent 012ac5d commit fdcd4a9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

utils/build-presets.ini

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,31 @@ mixin-preset=buildbot_linux_crosscompile_android,tools=RA,stdlib=RD,build
10291029

10301030
android-arch=x86_64
10311031

1032+
[preset: mixin_lld]
1033+
extra-cmake-options=
1034+
-DSWIFT_USE_LINKER=lld
1035+
-DCLANG_DEFAULT_LINKER=lld
1036+
1037+
[preset: buildbot_linux,lld]
1038+
mixin-preset=
1039+
buildbot_linux
1040+
mixin_lld
1041+
1042+
[preset: buildbot_linux,lld,no_assertions]
1043+
mixin-preset=
1044+
buildbot_linux,no_assertions
1045+
mixin_lld
1046+
1047+
[preset: buildbot_linux,lld,no_test]
1048+
mixin-preset=
1049+
buildbot_linux,no_test
1050+
mixin_lld
1051+
1052+
[preset: buildbot_linux,lld,no_assertions,no_test]
1053+
mixin-preset=
1054+
buildbot_linux,no_assertions,no_test
1055+
mixin_lld
1056+
10321057
# Ubuntu 18.04 preset for backwards compat and future customizations.
10331058
[preset: buildbot_linux_1804]
10341059
mixin-preset=buildbot_linux

0 commit comments

Comments
 (0)