Skip to content

[embedded] To unblock failing CI jobs, only build the embedded stdlib when building the compiler for now #68602

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

Merged
Merged
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
10 changes: 9 additions & 1 deletion stdlib/public/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,15 @@ add_swift_target_library(swiftCore
#
# For now, we build a hardcoded list of target triples of the embedded stdlib,
# and only when building Swift on macOS.
if(SWIFT_HOST_VARIANT STREQUAL "macosx")
set(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB TRUE)
if(NOT SWIFT_HOST_VARIANT STREQUAL "macosx")
set(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE)
elseif(NOT SWIFT_INCLUDE_TOOLS)
# Temporarily, only build embedded stdlib when building the compiler, to
# unblock CI jobs that run against old(er) toolchains.
set(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE)
endif()
if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
add_custom_target(embedded-stdlib ALL)
set(EMBEDDED_STDLIB_TARGET_TRIPLES
# arch module_name target triple
Expand Down