@@ -1506,12 +1506,14 @@ for host in "${ALL_HOSTS[@]}"; do
1506
1506
echo " Running Swift benchmarks for: ${SWIFT_RUN_BENCHMARK_TARGETS[@]} "
1507
1507
fi
1508
1508
1509
+ common_cmake_options_host=(" ${COMMON_CMAKE_OPTIONS[@]} " )
1510
+
1509
1511
if [[ $( is_cross_tools_host ${host} ) ]] ; then
1510
1512
1511
1513
if [[ " ${CROSS_COMPILE_WITH_HOST_TOOLS} " ]]; then
1512
1514
# Optionally use the freshly-built host copy of clang to build
1513
1515
# for foreign hosts.
1514
- COMMON_CMAKE_OPTIONS +=(
1516
+ common_cmake_options_host +=(
1515
1517
-DCMAKE_C_COMPILER=" $( build_directory ${LOCAL_HOST} llvm) /bin/clang"
1516
1518
-DCMAKE_CXX_COMPILER=" $( build_directory ${LOCAL_HOST} llvm) /bin/clang++"
1517
1519
)
@@ -1520,7 +1522,7 @@ for host in "${ALL_HOSTS[@]}"; do
1520
1522
# CMake can't relink when using Ninja, but that's okay -
1521
1523
# we don't need a build-local rpath because we can't run cross-compiled products
1522
1524
if [[ " ${CMAKE_GENERATOR} " == " Ninja" ]]; then
1523
- COMMON_CMAKE_OPTIONS +=(
1525
+ common_cmake_options_host +=(
1524
1526
-DCMAKE_BUILD_WITH_INSTALL_RPATH=" 1"
1525
1527
)
1526
1528
fi
@@ -1627,7 +1629,7 @@ for host in "${ALL_HOSTS[@]}"; do
1627
1629
build_dir=$( build_directory ${host} ${product} )
1628
1630
build_targets=(all)
1629
1631
1630
- cmake_options=(" ${COMMON_CMAKE_OPTIONS [@]} " )
1632
+ cmake_options=(" ${common_cmake_options_host [@]} " )
1631
1633
1632
1634
# Add in gold linker support if requested.
1633
1635
if [[ " ${USE_GOLD_LINKER} " ]]; then
@@ -1702,7 +1704,6 @@ for host in "${ALL_HOSTS[@]}"; do
1702
1704
1703
1705
swift)
1704
1706
1705
- cmake_options=(" ${COMMON_CMAKE_OPTIONS[@]} " )
1706
1707
if [[ " ${USE_GOLD_LINKER} " ]]; then
1707
1708
# Swift will selectively use the gold linker on all
1708
1709
# parts except building the standard library. We
0 commit comments