Skip to content

Commit ac15eae

Browse files
authored
Merge pull request #5389 from erg/build-script-impl-flag
build-script-impl: Add a flag for SourceKit to skip install pass under some conditions
2 parents b527e0d + dc40d54 commit ac15eae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/build-script-impl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ KNOWN_SETTINGS=(
240240
clang-profile-instr-use "" "If set, profile file to use for clang PGO"
241241
coverage-db "" "If set, coverage database to use when prioritizing testing"
242242
build-toolchain-only "" "If set, only build the necessary tools to build an external toolchain"
243+
skip-local-host-install "" "If we are cross-compiling multiple targets, skip an install pass locally if the hosts match"
243244
)
244245

245246
# Centralized access point for traced command invocation.
@@ -2799,6 +2800,11 @@ for host in "${ALL_HOSTS[@]}"; do
27992800
continue
28002801
fi
28012802

2803+
# Skip this pass if flag is set and we are cross compiling and it's the local host.
2804+
if [[ "${SKIP_LOCAL_HOST_INSTALL}" ]] && [[ $(has_cross_compile_hosts) ]] && [[ ${host} == ${LOCAL_HOST} ]]; then
2805+
continue
2806+
fi
2807+
28022808
# Calculate the directory to install products in to.
28032809
host_install_destdir=$(get_host_install_destdir ${host})
28042810
host_install_prefix=$(get_host_install_prefix ${host})

0 commit comments

Comments
 (0)