Skip to content

Commit 9b6e470

Browse files
authored
Merge pull request #37929 from apple/revert-37889-strip-i386-tvos
Revert "Strip i386 arch from tvOS simulator lib"
2 parents 22a313e + 8470faf commit 9b6e470

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

utils/build-script-impl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,11 +1457,7 @@ function copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain() {
14571457
DEST_LIB_PATH="${DEST_BUILTINS_DIR}/${LIB_NAME}"
14581458
if [[ ! -f "${DEST_LIB_PATH}" ]]; then
14591459
if [[ -f "${HOST_LIB_PATH}" ]]; then
1460-
if [[ "$OS" == "tvos" ]]; then
1461-
call lipo -remove i386 "${HOST_LIB_PATH}" -output "${DEST_LIB_PATH}" || call cp "${HOST_LIB_PATH}" "${DEST_LIB_PATH}"
1462-
else
1463-
call cp "${HOST_LIB_PATH}" "${DEST_LIB_PATH}"
1464-
fi
1460+
call cp "${HOST_LIB_PATH}" "${DEST_LIB_PATH}"
14651461
elif [[ "${VERBOSE_BUILD}" ]]; then
14661462
echo "no file exists at ${HOST_LIB_PATH}"
14671463
fi
@@ -1473,11 +1469,7 @@ function copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain() {
14731469
DEST_SIM_LIB_PATH="${DEST_BUILTINS_DIR}/${SIM_LIB_NAME}"
14741470
if [[ ! -f "${DEST_SIM_LIB_PATH}" ]]; then
14751471
if [[ -f "${HOST_SIM_LIB_PATH}" ]]; then
1476-
if [[ "$OS" == "tvos" ]]; then
1477-
call lipo -remove i386 "${HOST_SIM_LIB_PATH}" -output "${DEST_SIM_LIB_PATH}" || call cp "${HOST_SIM_LIB_PATH}" "${DEST_SIM_LIB_PATH}"
1478-
else
1479-
call cp "${HOST_SIM_LIB_PATH}" "${DEST_SIM_LIB_PATH}"
1480-
fi
1472+
call cp "${HOST_SIM_LIB_PATH}" "${DEST_SIM_LIB_PATH}"
14811473
elif [[ -f "${HOST_LIB_PATH}" ]]; then
14821474
# The simulator .a might not exist if the host
14831475
# Xcode is old. In that case, copy over the

0 commit comments

Comments
 (0)