Skip to content

Commit 031ecc2

Browse files
authored
Merge pull request #7860 from gottesmm/build_script_impl_linux_benchmarks
2 parents 014ec70 + a1cf6d3 commit 031ecc2

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

utils/build-presets.ini

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,53 @@ swift-primary-variant-arch=x86_64
549549
# Don't build the benchmarks
550550
skip-build-benchmarks
551551

552+
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,benchmarks]
553+
mixin-preset=buildbot_incremental_base
554+
build-subdir=buildbot_incremental
555+
556+
# We build release+asserts.
557+
release
558+
assertions
559+
560+
# We run the OS X tests and validation tests.
561+
test
562+
validation-test
563+
564+
llvm-targets-to-build=X86
565+
566+
# Set the vendor to apple
567+
compiler-vendor=apple
568+
569+
dash-dash
570+
571+
# Always reconfigure cmake
572+
reconfigure
573+
574+
# We want to always perform a verbose build
575+
verbose-build
576+
577+
# Build ninja while we are at it
578+
build-ninja
579+
580+
# We need to build the unittest extras so we can test
581+
build-swift-stdlib-unittest-extra
582+
583+
# Make sure our stdlib is RA.
584+
swift-stdlib-build-type=RelWithDebInfo
585+
swift-stdlib-enable-assertions=true
586+
587+
# Disable non-x86 building/testing.
588+
skip-build-ios
589+
skip-test-ios
590+
skip-build-tvos
591+
skip-test-tvos
592+
skip-build-watchos
593+
skip-test-watchos
594+
stdlib-deployment-targets=macosx-x86_64
595+
swift-primary-variant-sdk=OSX
596+
swift-primary-variant-arch=x86_64
597+
598+
552599
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,flto]
553600
mixin-preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx
554601
build-subdir=buildbot_incremental
@@ -737,6 +784,25 @@ lit-args=-v
737784

738785
dash-dash
739786

787+
install-foundation
788+
install-libdispatch
789+
reconfigure
790+
skip-build-benchmarks
791+
792+
[preset: buildbot_linux,build_benchmark]
793+
mixin-preset=mixin_linux_installation
794+
build-subdir=buildbot_linux
795+
lldb
796+
release
797+
test
798+
validation-test
799+
long-test
800+
foundation
801+
libdispatch
802+
lit-args=-v
803+
804+
dash-dash
805+
740806
install-foundation
741807
install-libdispatch
742808
reconfigure
@@ -774,6 +840,8 @@ install-foundation
774840
install-libdispatch
775841
reconfigure
776842
skip-test-lldb
843+
skip-build-benchmarks
844+
777845

778846

779847
[preset: buildbot_linux_1404_no_lldb]
@@ -835,6 +903,7 @@ dash-dash
835903

836904
build-ninja
837905
reconfigure
906+
skip-build-benchmarks
838907

839908
[preset: buildbot_incremental_linux]
840909
mixin-preset=buildbot_incremental_linux_base

utils/build-script-impl

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

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ class StdlibDeploymentTarget(object):
119119
"powerpc64",
120120
"powerpc64le",
121121
"s390x"])
122+
# We support build/test benchmarks only on Linux x86_64.
123+
#
124+
# TODO: If we support any more platforms, we should consider refactoring the
125+
# supports_benchmark property onto the target from the platform.
126+
Linux.x86_64.supports_benchmark = True
122127

123128
FreeBSD = Platform("freebsd", archs=["x86_64"])
124129

0 commit comments

Comments
 (0)