[5.3] Support cross compile Xcode toolchain for Apple Silicon (#33780)
* Support cross compile Xcode toolchain for Apple Silicon
* Add CMake flag DCMAKE_OSX_ARCHITECTURES to LLVM
* Add CMake flag DCMAKE_OSX_ARCHITECTURES to cmark
* Add CMake flag DCMAKE_OSX_ARCHITECTURES to lldb
* Add CMake flag DCMAKE_OSX_ARCHITECTURES to llbuild
* Add llbuild CMake options array to provide DCMAKE_OSX_ARCHITECTURES
* [Build System] Use one install package for cross compile hosts
* Remove Lipo before non-build-script-impl products
* Add support to only lipo without running installable package tests
* [Build System] Support cross compile install prefix for SwiftPM product in Swift Build Support
* Use cross compile toolchain path for indexstoredb and swift-driver
* Use cross compile toolchain path for swiftpm, swiftsyntax, swiftformat, and skstresstester
* Add cross compile toolchain support to Benchmarks, and fix the python lint issue in skstresstester.py
* [SwiftPM] Add support for cross-compile-hosts flag to build swiftpm using bootstrap script
(cherry picked from commit bf7c03b1f6cce062e27684abe5018a723a594662)
* Remove DCMAKE_OSX_SYSROOT from LLDB CMake flag
The cherry-picked added DCMAKE_OSX_SYSROOT flag when it should not have.
* Don't build SwiftUnitTests for cross compile host
(cherry picked from commit ceeb7245f11cf61cf0836ee461818b9dcb87aad6)
* Don't run LLDB cross compile host test suite
(cherry picked from commit bb356d3ac1ae8068dfa575d3a112977799bfe109)
* Remove compiler-rt from install targets for cross compile host
(cherry picked from commit 9adbace82379a7800478ce69d84a1ec151c2422c)
* [Package] When building a toolchain, don't copy the Resource directory.
Should dramatically improve the size of the snapshost produced,
as we don't have stdlib et similia included twice. Also, it helps when
producing fat binaries, as we don't have to implement any mechanism
for sandwiching all the slices together.
(cherry picked from commit 8337f961d8c24bdbe333f38d826b414598c70ce0)
* Add missing imports for swiftpm in the products class
Co-authored-by: Davide Italiano <ditaliano@apple.com>