Skip to content

Commit 0f5352f

Browse files
authored
[5.3] Add missing -f to check which checks if a compiler-rt archive is present
1 parent 20b155a commit 0f5352f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ for host in "${ALL_HOSTS[@]}"; do
23652365
HOST_SIM_LIB_PATH="$HOST_CXX_BUILTINS_DIR/$SIM_LIB_NAME"
23662366
if [[ -f "${HOST_SIM_LIB_PATH}" ]]; then
23672367
call cp "${HOST_SIM_LIB_PATH}" "${DEST_BUILTINS_DIR}/${SIM_LIB_NAME}"
2368-
elif [[ "${HOST_LIB_PATH}" ]]; then
2368+
elif [[ -f "${HOST_LIB_PATH}" ]]; then
23692369
# The simulator .a might not exist if the host
23702370
# Xcode is old. In that case, copy over the
23712371
# device library to the simulator location to allow

0 commit comments

Comments
 (0)