Skip to content

Commit e9a435d

Browse files
committed
build-script: allow building a pluggable performance test suite, if requested by a command line flag
1 parent 0224f2d commit e9a435d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/build-script-impl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,6 +1597,8 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
15971597
native_clang_tools_path=""
15981598
native_swift_tools_path=""
15991599
if [[ $(is_cross_tools_deployment_target $deployment_target) ]] ; then
1600+
# Don't build benchmarks and tests when building cross compiler.
1601+
build_perf_testsuite_this_time=false
16001602
build_tests_this_time=false
16011603

16021604
# FIXME: don't hardcode macosx-x86_64.
@@ -1613,6 +1615,7 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
16131615
-DLLVM_MAIN_SRC_DIR:PATH="${LLVM_SOURCE_DIR}"
16141616
)
16151617
else
1618+
build_perf_testsuite_this_time=$(true_false "${BUILD_SWIFT_PERF_TESTSUITE}")
16161619
build_tests_this_time=${SOURCE_TREE_INCLUDES_TESTS}
16171620
fi
16181621

@@ -1654,6 +1657,7 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
16541657
-DSWIFT_BUILD_STDLIB:BOOL=$(true_false "${BUILD_SWIFT_STDLIB}")
16551658
-DSWIFT_BUILD_SDK_OVERLAY:BOOL=$(true_false "${BUILD_SWIFT_SDK_OVERLAY}")
16561659
-DSWIFT_BUILD_STATIC_STDLIB:BOOL=$(true_false "${BUILD_SWIFT_STATIC_STDLIB}")
1660+
-DSWIFT_BUILD_PERF_TESTSUITE:BOOL=$(true_false "${build_perf_testsuite_this_time}")
16571661
-DSWIFT_BUILD_EXAMPLES:BOOL=$(true_false "${BUILD_SWIFT_EXAMPLES}")
16581662
-DSWIFT_INCLUDE_TESTS:BOOL=$(true_false "${build_tests_this_time}")
16591663
-DSWIFT_INSTALL_COMPONENTS:STRING="${SWIFT_INSTALL_COMPONENTS}"

0 commit comments

Comments
 (0)