Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/utils/ci/apple-install-libcxx.sh
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | function universal_dylib() { | ||||
xcrun dsymutil "${build_dir}/${dylib}" -o "${symbols_dir}/${dylib}.dSYM" | xcrun dsymutil "${build_dir}/${dylib}" -o "${symbols_dir}/${dylib}.dSYM" | ||||
cp "${build_dir}/${dylib}" "${symbols_dir}/${dylib}" | cp "${build_dir}/${dylib}" "${symbols_dir}/${dylib}" | ||||
} | } | ||||
if [ "$headers_only" != true ]; then | if [ "$headers_only" != true ]; then | ||||
universal_dylib libc++.1.dylib | universal_dylib libc++.1.dylib | ||||
universal_dylib libc++abi.dylib | universal_dylib libc++abi.dylib | ||||
(cd "${install_dir}/usr/lib" && ln -s "libc++.1.dylib" libc++.dylib) | (cd "${install_dir}/usr/lib" && ln -s "libc++.1.dylib" libc++.dylib) | ||||
experimental_libs=$(for arch in ${architectures}; do echo "${build_dir}/${arch}-install/lib/libc++experimental.a"; done) | |||||
xcrun lipo -create ${experimental_libs} -output "${install_dir}/usr/lib/libc++experimental.a" | |||||
fi | fi | ||||
# Install the headers by copying the headers from one of the built architectures | # Install the headers by copying the headers from one of the built architectures | ||||
# into the install directory. Headers from all architectures should be the same. | # into the install directory. Headers from all architectures should be the same. | ||||
step "Installing the libc++ and libc++abi headers to ${install_dir}/usr/include" | step "Installing the libc++ and libc++abi headers to ${install_dir}/usr/include" | ||||
any_arch=$(echo ${architectures} | cut -d ' ' -f 1) | any_arch=$(echo ${architectures} | cut -d ' ' -f 1) | ||||
mkdir -p "${install_dir}/usr/include" | mkdir -p "${install_dir}/usr/include" | ||||
ditto "${build_dir}/${any_arch}-install/include" "${install_dir}/usr/include" | ditto "${build_dir}/${any_arch}-install/include" "${install_dir}/usr/include" | ||||
Show All 18 Lines |