Skip to content

Conversation

@ethan-kusters
Copy link
Contributor

Resolves swiftlang/swift-docc#433.

Updates the build script used in SwiftCI for building the docc executable as part of Swift.org toolchains to support cross compilation.

Currently the docc executable included in the otherwise universal macOS toolchain only supports x86_64. This resolves the issue.

Updates the build script used in SwiftCI for building the `docc`
executable as part of Swift.org toolchains to support cross compilation.

Currently the `docc` executable included in the otherwise universal
macOS toolchain only supports x86_64. This resolves the issue.
@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please Build Toolchain macOS Platform

1 similar comment
@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please Build Toolchain macOS Platform

@ethan-kusters
Copy link
Contributor Author

This seems to resolve the issue:

% file /Users/ekusters/Library/Developer/Toolchains/swift-PR-62306-414.xctoolchain/usr/bin/docc
/Users/ekusters/Library/Developer/Toolchains/swift-PR-62306-414.xctoolchain/usr/bin/docc: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/Users/ekusters/Library/Developer/Toolchains/swift-PR-62306-414.xctoolchain/usr/bin/docc (for architecture x86_64):	Mach-O 64-bit executable x86_64
/Users/ekusters/Library/Developer/Toolchains/swift-PR-62306-414.xctoolchain/usr/bin/docc (for architecture arm64):	Mach-O 64-bit executable arm64

@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please Build Toolchain Linux Platform

@ethan-kusters
Copy link
Contributor Author

@swift-ci please smoke test

@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please smoke test

@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please smoke test Linux platform

@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please build toolchain

@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please smoke test

@ethan-kusters
Copy link
Contributor Author

swiftlang/swift-docc#434
@swift-ci Please Build Toolchain macOS Platform

@ethan-kusters ethan-kusters merged commit a36ab6e into swiftlang:main Dec 1, 2022
@ethan-kusters ethan-kusters deleted the cross-compile-docc branch December 1, 2022 19:46
ethan-kusters added a commit to ethan-kusters/swift that referenced this pull request Dec 2, 2022
…g#62306)"

This reverts commit a36ab6e.

The change to support cross compilation of `docc` in macOS toolchains
is breaking nightly toolchain builds – this will unblock them.

It looks like the `--test-product` option Swift-DocC's build script passes to
SwiftPM is supported when building for multiple architectures but not when
testing. PR toolchain builds don't run tests which is why this wasn't caught
before merging.

Resolves rdar://102908495
shahmishal pushed a commit that referenced this pull request Dec 2, 2022
…#62369)

This reverts commit a36ab6e.

The change to support cross compilation of `docc` in macOS toolchains
is breaking nightly toolchain builds – this will unblock them.

It looks like the `--test-product` option Swift-DocC's build script passes to
SwiftPM is supported when building for multiple architectures but not when
testing. PR toolchain builds don't run tests which is why this wasn't caught
before merging.

Resolves rdar://102908495
ethan-kusters added a commit to ethan-kusters/swift that referenced this pull request Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.8 nightlies ship x86 only docc binary

3 participants