Skip to content

Commit 3376738

Browse files
committed
[build-script-impl] Add support for building benchmarks on linux but disable it in all currently defined presets for linux.
1 parent 302eadf commit 3376738

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

utils/build-presets.ini

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,25 @@ lit-args=-v
737737

738738
dash-dash
739739

740+
install-foundation
741+
install-libdispatch
742+
reconfigure
743+
skip-build-benchmarks
744+
745+
[preset: buildbot_linux,build_benchmark]
746+
mixin-preset=mixin_linux_installation
747+
build-subdir=buildbot_linux
748+
lldb
749+
release
750+
test
751+
validation-test
752+
long-test
753+
foundation
754+
libdispatch
755+
lit-args=-v
756+
757+
dash-dash
758+
740759
install-foundation
741760
install-libdispatch
742761
reconfigure
@@ -774,6 +793,8 @@ install-foundation
774793
install-libdispatch
775794
reconfigure
776795
skip-test-lldb
796+
skip-build-benchmarks
797+
777798

778799

779800
[preset: buildbot_linux_1404_no_lldb]
@@ -835,6 +856,7 @@ dash-dash
835856

836857
build-ninja
837858
reconfigure
859+
skip-build-benchmarks
838860

839861
[preset: buildbot_incremental_linux]
840862
mixin-preset=buildbot_incremental_linux_base

utils/build-script-impl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,8 @@ function calculate_targets_for_host() {
13271327
swift_sdk="LINUX"
13281328
build_for_this_target=$(not ${SKIP_BUILD_LINUX})
13291329
test_this_target=$(not ${SKIP_TEST_LINUX})
1330+
build_benchmark_this_target=$(not ${SKIP_BUILD_LINUX})
1331+
test_benchmark_this_target=$(not ${SKIP_BUILD_LINUX})
13301332
;;
13311333
freebsd-*)
13321334
swift_sdk="FREEBSD"

0 commit comments

Comments
 (0)