Skip to content

Preliminary Linux-OpenBSD cross-compile support.#60823

Merged
compnerd merged 2 commits intoswiftlang:mainfrom
3405691582:cross
Aug 31, 2022
Merged

Preliminary Linux-OpenBSD cross-compile support.#60823
compnerd merged 2 commits intoswiftlang:mainfrom
3405691582:cross

Conversation

@3405691582
Copy link
Copy Markdown
Member

@3405691582 3405691582 commented Aug 28, 2022

With a properly prepared sysroot and toolchain file, these changes permit
cross-compilation of Swift as well as LLVM, CMark, and Dispatch (picking,
as usual, swiftlang/swift-corelibs-libdispatch#556) from a Linux host
generating OpenBSD binaries.

The toolchain file must be specified as an environment variable to
build-script and discussion on how to properly set up the sysroot and
toolchain file will be handled later.

With a properly prepared sysroot and toolchain file, these changes permit
cross-compilation of Swift as well as LLVM, CMark, and Dispatch (picking,
as usual, swiftlang/swift-corelibs-libdispatch#556) from a Linux host
generating OpenBSD binaries.

The toolchain file must be specified as an environment variable to
`build-script` and discussion on how to properly set up the sysroot and
toolchain file will be handled later.
@kateinoigakukun
Copy link
Copy Markdown
Member

@swift-ci Please smoke test

Comment thread cmake/modules/SwiftConfigureSDK.cmake Outdated
Comment thread utils/build-script-impl Outdated
Comment thread utils/build-script-impl Outdated
@compnerd
Copy link
Copy Markdown
Member

CC: @etcwilde

Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
@compnerd
Copy link
Copy Markdown
Member

@swift-ci please smoke test

@compnerd compnerd merged commit 1eb294d into swiftlang:main Aug 31, 2022
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.

3 participants