-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.3] Support cross compile Xcode toolchain for Apple Silicon #33780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.3] Support cross compile Xcode toolchain for Apple Silicon #33780
Conversation
* 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 bf7c03b)
swiftlang/swift-package-manager#2904 @swift-ci build toolchain |
@swift-ci build toolchain macOS |
The cherry-picked added DCMAKE_OSX_SYSROOT flag when it should not have.
@swift-ci build toolchain macOS |
@swift-ci build toolchain macOS |
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 8337f96)
@swift-ci build toolchain macOS |
@swift-ci build toolchain macOS |
4 similar comments
@swift-ci build toolchain macOS |
@swift-ci build toolchain macOS |
@swift-ci build toolchain macOS |
@swift-ci build toolchain macOS |
@swift-ci build toolchain Linux |
@swift-ci test |
Build failed |
Build failed |
@swift-ci test macOS |
@swift-ci build toolchain macOS |
swiftlang/swift-package-manager#2917 @swift-ci build toolchain macOS |
swiftlang/swift-package-manager#2917 @swift-ci build toolchain macOS |
macOS Toolchain Install command |
* 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 bf7c03b) * 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 ceeb724) * Don't run LLDB cross compile host test suite (cherry picked from commit bb356d3) * Remove compiler-rt from install targets for cross compile host (cherry picked from commit 9adbace) * [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 8337f96) * Add missing imports for swiftpm in the products class Co-authored-by: Davide Italiano <[email protected]> (cherry picked from commit 45e46eb)
(cherry picked from commit bf7c03b)
Master PR - #33490