Skip to content

Commit 2a05418

Browse files
authored
[build-script] Forward cross-compile host flags to lldb (#27910)
1 parent 3971c0a commit 2a05418

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build-script-impl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,8 @@ for host in "${ALL_HOSTS[@]}"; do
24472447
cmake_options=(
24482448
"${cmake_options[@]}"
24492449
-C${LLDB_SOURCE_DIR}/cmake/caches/${cmake_cache}
2450+
-DCMAKE_C_FLAGS="$(llvm_c_flags ${host})"
2451+
-DCMAKE_CXX_FLAGS="$(llvm_c_flags ${host})"
24502452
-DCMAKE_BUILD_TYPE:STRING="${LLDB_BUILD_TYPE}"
24512453
-DLLDB_SWIFTC:PATH="$(build_directory ${LOCAL_HOST} swift)/bin/swiftc"
24522454
-DLLDB_SWIFT_LIBS:PATH="$(build_directory ${LOCAL_HOST} swift)/lib/swift"

0 commit comments

Comments
 (0)