Skip to content

Commit 22f5766

Browse files
authored
Merge pull request swiftlang#30682 from fredriss/lldb-crosscompile-host-tools
2 parents 9082dd4 + a4c5671 commit 22f5766

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

utils/build-script-impl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,6 +1868,17 @@ for host in "${ALL_HOSTS[@]}"; do
18681868
-DLLDB_TEST_USER_ARGS="${DOTEST_ARGS}"
18691869
)
18701870

1871+
if [[ $(is_cross_tools_host ${host}) ]] ; then
1872+
cmake_options=(
1873+
"${cmake_options[@]}"
1874+
-DLLVM_TABLEGEN=$(build_directory "${LOCAL_HOST}" llvm)/bin/llvm-tblgen
1875+
-DCLANG_TABLEGEN=$(build_directory "${LOCAL_HOST}" llvm)/bin/clang-tblgen
1876+
-DLLDB_TABLEGEN=$(build_directory "${LOCAL_HOST}" lldb)/bin/lldb-tblgen
1877+
-DLLDB_TABLEGEN_EXE=$(build_directory "${LOCAL_HOST}" lldb)/bin/lldb-tblgen
1878+
-DLLVM_NATIVE_BUILD=$(build_directory "${LOCAL_HOST}" llvm)
1879+
)
1880+
fi
1881+
18711882
if [[ "$(uname -s)" == "Darwin" && "$(true_false ${LLDB_USE_SYSTEM_DEBUGSERVER})" == "TRUE" ]]; then
18721883
cmake_options+=(
18731884
-DLLDB_USE_SYSTEM_DEBUGSERVER:BOOL="${LLDB_USE_SYSTEM_DEBUGSERVER}"

0 commit comments

Comments
 (0)