File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1597,6 +1597,8 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
1597
1597
native_clang_tools_path=" "
1598
1598
native_swift_tools_path=" "
1599
1599
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
1600
1602
build_tests_this_time=false
1601
1603
1602
1604
# FIXME: don't hardcode macosx-x86_64.
@@ -1613,6 +1615,7 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
1613
1615
-DLLVM_MAIN_SRC_DIR:PATH=" ${LLVM_SOURCE_DIR} "
1614
1616
)
1615
1617
else
1618
+ build_perf_testsuite_this_time=$( true_false " ${BUILD_SWIFT_PERF_TESTSUITE} " )
1616
1619
build_tests_this_time=${SOURCE_TREE_INCLUDES_TESTS}
1617
1620
fi
1618
1621
@@ -1654,6 +1657,7 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
1654
1657
-DSWIFT_BUILD_STDLIB:BOOL=$( true_false " ${BUILD_SWIFT_STDLIB} " )
1655
1658
-DSWIFT_BUILD_SDK_OVERLAY:BOOL=$( true_false " ${BUILD_SWIFT_SDK_OVERLAY} " )
1656
1659
-DSWIFT_BUILD_STATIC_STDLIB:BOOL=$( true_false " ${BUILD_SWIFT_STATIC_STDLIB} " )
1660
+ -DSWIFT_BUILD_PERF_TESTSUITE:BOOL=$( true_false " ${build_perf_testsuite_this_time} " )
1657
1661
-DSWIFT_BUILD_EXAMPLES:BOOL=$( true_false " ${BUILD_SWIFT_EXAMPLES} " )
1658
1662
-DSWIFT_INCLUDE_TESTS:BOOL=$( true_false " ${build_tests_this_time} " )
1659
1663
-DSWIFT_INSTALL_COMPONENTS:STRING=" ${SWIFT_INSTALL_COMPONENTS} "
You can’t perform that action at this time.
0 commit comments