-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[6.0] Add swift-corelibs-foundation Linux/Android workaround
#7641
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
Conversation
We need this information to set `-w` and other package specific options. (cherry picked from commit c86ea69)
CoreFoundation depends on dispatch, this dependency is implicit and dispatch itself is bundled with swift toolchains. Let's add a package specific workaround for Linux/Android targets to add toolchain resources directory to search paths of clang build targets. (cherry picked from commit 0871a04) # Conflicts: # Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
(cherry picked from commit d6cfaeb) # Conflicts: # Tests/BuildTests/ClangTargetBuildDescriptionTests.swift
(cherry picked from commit a85039c) # Conflicts: # Sources/SPMTestSupport/MockBuildTestHelper.swift
|
@swift-ci test |
swift-corelibs-foundation Linux/Android-specific workaround
swift-corelibs-foundation Linux/Android-specific workaroundswift-corelibs-foundation Linux/Androidworkaround
swift-corelibs-foundation Linux/Androidworkaroundswift-corelibs-foundation Linux/Android workaround
This test should be cherry-picked in #7641 and initially ended up in this cherry-pick PR by mistake.
|
@swift-ci test |
|
@swift-ci test windows |
|
@bnbarham is it worth resolving conflicts here, or are we keeping it in |
|
It turns out that sourcekit-lsp also needs basically this exact thing (https://github.com/apple/sourcekit-lsp/blob/main/CONTRIBUTING.md#linux), so we really do need something more generic here. Let's just keep it on main for now. |
Cherry-pick of #7425
Explanation: CoreFoundation depends on dispatch, this dependency is implicit and dispatch itself is bundled with swift toolchains. Let's add a package specific workaround for Linux/Android targets to add toolchain resources directory to search paths of clang build targets.
Scope: Isolated to Android and Linux support in llbuild code.
Risk: Low, change was on
mainfor more than 2 months now.Testing: Automated with a new test case:
testSwiftCorelibsFoundationIncludeWorkaround.Issue: Prerequisite for rdar://127369576
Reviewer: @MaxDesiatov