[BuildScript] Add products for Swift-DocC and Swift-DocC-Render#39723
[BuildScript] Add products for Swift-DocC and Swift-DocC-Render#39723franklinsch merged 3 commits intoswiftlang:mainfrom
Conversation
(rdar://79703353)
|
@swift-ci Please test |
|
@swift-ci Please build toolchain |
|
swiftlang/swift-integration-tests#93 |
|
Build failed |
|
Build failed |
|
@swift-ci Please test macOS |
|
Build failed |
|
@swift-ci test |
|
swiftlang/swift-integration-tests#93 |
|
Build failed |
|
Build failed |
|
swiftlang/swift-integration-tests#93 |
|
@swift-ci test |
|
Build failed |
|
Build failed |
|
swiftlang/swift-integration-tests#93 |
|
Linux Toolchain (Ubuntu 16.04) Install command |
|
@swift-ci test |
|
Build failed |
|
Build failed |
Adding the required `get_dependencies` class method should resolve the remaining test failures we're seeing for macOS toolchain builds.
|
swiftlang/swift-integration-tests#93 |
|
@swift-ci test |
|
Build failed |
|
@swift-ci Please test Linux platform |
|
Linux Toolchain (Ubuntu 16.04) Install command |
|
macOS Toolchain Install command |
This adds build script products for Swift-DocC and Swift-DocC-Render so that these projects can be built as part of a Swift toolchain.
This adds two new flags to
./utils/build-script(--swiftdoccand--swiftdoccrender) and updates thebuildbot_linuxpreset and themixin_osx_package_basepreset to build Swift-DocC but not Swift-DocC-Render.Instead, when only
--swiftdoccis passed, the Swift-DocC product will copy the already built swift-docc-render template included in the host toolchain (when present) over to the install toolchain. If the host toolchain doesn't include a swift-docc-render template, the Swift-DocC product will raise a warning.This allows developers to build Swift-DocC from source as part of a toolchain without needing to build Swift-DocC-Render from source (assuming that they haven't made any changes to the Swift-DocC-Render source code).
For developers who want to build a toolchain with both Swift-DocC and Swift-DocC-Render built from source, there are new presets that also include the
--swiftdoccrenderflag. There's also a new--swift-docc-renderflag added to./utils/build-toolchainwhich selects a preset that build Swift-DocC-Render.Resolves rdar://79703353