Skip to content

Bootstrap: Add stage-1 preset #80921

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 55 additions & 11 deletions utils/build-presets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3116,15 +3116,9 @@ llvm-cmake-options=
# Build Requirements:
# - C and C++ compiler
# Toolchain Outputs:
# - Swift Compiler
# C++ Driver
# No Macro Support
# No Swift Compiler Sources
# - Swift Compiler (-SwiftDriver, -macros, -SwiftSilOpts)
# Runtime Outputs:
# - Swift Standard Library
# swiftCore
# OnoneSupport
# Concurrency
# - Swift Standard Library (-macros)
[preset: bootstrap_stage0]
mixin-preset=
mixin_buildbot_linux,no_test
Expand All @@ -3137,17 +3131,67 @@ release
skip-early-swiftsyntax
skip-early-swift-driver
skip-build-benchmarks
build-swift-examples=0

build-runtime-with-host-compiler=0
build-swift-libexec=0
build-swift-remote-mirror=0

swift-install-components=autolink-driver;compiler;clang-resource-dir-symlink;stdlib;sdk-overlay;toolchain-tools
llvm-install-components=llvm-ar;llvm-ranlib;clang;clang-resource-headers;compiler-rt;clang-features-file;llvm-symbolizer

extra-cmake-options=
-DLLVM_TARGETS_TO_BUILD=AArch64;X86

swift-cmake-options=
-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY:BOOL=YES
-DSWIFT_ENABLE_EXPERIMENTAL_OBSERVATION:BOOL=NO
-DSWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED:BOOL=NO
-DSWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING:BOOL=NO
-DSWIFT_ENABLE_SWIFT_IN_SWIFT:BOOL=NO
-DSWIFT_INCLUDE_DOCS:BOOL=NO
-DSWIFT_BUILD_EXAMPLES:BOOL=OFF
-DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=NO
-DSWIFT_BUILD_STATIC_STDLIB:BOOL=NO

build-subdir=%(build_subdir)s
install-destdir=%(install_destdir)s

swift-install-components=autolink-driver;compiler;clang-resource-dir-symlink;stdlib;sdk-overlay;toolchain-tools
llvm-install-components=llvm-ar;llvm-ranlib;clang;clang-resource-headers;compiler-rt;clang-features-file;llvm-symbolizer

install-llvm
install-swift

# Build Toolchain Requirements:
# - C/C++ compiler
# - Swift Compiler (-SwiftDriver, -macros, -SwiftSilOpts)
# Toolchain Outputs:
# - Swift Compiler (-SwiftDriver, +macros, +SwiftSilOpts)
# Runtime Outputs:
# - Standard Library (+macros)
# - Dispatch
# - Foundation (+macros)
[preset: bootstrap_stage1]
mixin-preset=mixin_buildbot_linux,no_test
bootstrapping=hosttools

release
foundation
libdispatch

skip-early-swift-driver
skip-build-benchmarks

enable-experimental-concurrency=1

extra-cmake-options=
-DLLVM_TARGETS_TO_BUILD=AArch64;X86

swift-install-components=autolink-driver;compiler;clang-resource-dir-symlink;stdlib;sdk-overlay;toolchain-tools;license
llvm-install-components=llvm-ar;llvm-ranlib;clang;clang-resource-headers;compiler-rt;clang-features-file;lld

build-subdir=%(build_subdir)s
install-destdir=%(install_destdir)s

install-llvm
install-swift
install-foundation
install-libdispatch
1 change: 1 addition & 0 deletions utils/build_swift/tests/build_swift/test_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'ndk_path': '/path/to/ndk',
'arm_dir': '/path/to/arm',
'toolchain_path': '/tmp/toolchain',
'build_subdir': 'test_build_subdir',
}

SAMPLE_PRESET = """
Expand Down