Revert "Build App.framework for all requested architectures" (#17316)

* Revert "Build App.framework for all requested architectures (#17296)"

This reverts commit feb16d8d01.
This commit is contained in:
Chris Bracken
2018-05-04 18:17:35 -07:00
committed by GitHub
parent a87e324f32
commit b2b4665926

View File

@@ -130,16 +130,8 @@ BuildApp() {
RunCommand cp -r -- "${build_dir}/aot/App.framework" "${derived_dir}"
else
RunCommand mkdir -p -- "${derived_dir}/App.framework"
# Build stub for all requested architectures.
local arch_flags=""
read -r -a archs <<< "$ARCHS"
for arch in "${archs[@]}"; do
arch_flags="${arch_flags}-arch $arch "
done
RunCommand eval "$(echo "static const int Moo = 88;" | xcrun clang -x c \
${arch_flags} \
-arch "$CURRENT_ARCH" \
-dynamiclib \
-Xlinker -rpath -Xlinker '@executable_path/Frameworks' \
-Xlinker -rpath -Xlinker '@loader_path/Frameworks' \