Add Initial platform support for Haiku.#11583
Conversation
|
Awesome! |
|
You'll also want to update this file to get standard library command line support for Haiku. |
xwu
left a comment
There was a problem hiding this comment.
Hurray! Just some drive-by formatting nits.
stdlib/public/runtime/HaikuPort.cpp
Outdated
There was a problem hiding this comment.
Nit: Code style in this particular function seems to be very different from everything else, even in this file. Generally, the project uses two spaces instead of four, a space between while or if and the opening paren, and { on the same line as the condition. Also, what's going on with the indentation of this particular line?
There was a problem hiding this comment.
Nit: indent here and on subsequent lines should be two spaces instead of four.
lib/Driver/ToolChains.cpp
Outdated
There was a problem hiding this comment.
Nit: indent here is missing a space.
lib/Basic/Statistic.cpp
Outdated
There was a problem hiding this comment.
Nit: needs to be indented two spaces.
cmake/modules/AddSwift.cmake
Outdated
There was a problem hiding this comment.
Nit: indent here is inconsistent with other elseifs.
utils/build-script-impl
Outdated
There was a problem hiding this comment.
Nit: indentation is inconsistent on this line.
utils/build-script-impl
Outdated
There was a problem hiding this comment.
Nit: indentation is inconsistent as compared to cygwin-*) above and macosx-*) below.
There was a problem hiding this comment.
Nit: indentation should be four spaces and not three here.
CMakeLists.txt
Outdated
There was a problem hiding this comment.
Nit: indentation here is inconsistent with other lines; use two spaces instead of five.
009e6d2 to
048ebc2
Compare
lib/Driver/ToolChains.cpp
Outdated
There was a problem hiding this comment.
Nit: Did you mean -fuse-ld?
048ebc2 to
73d2334
Compare
lib/Basic/Statistic.cpp
Outdated
There was a problem hiding this comment.
@xwu Oops, sorry about that. Would changing it to #if defined(HAVE_GETRUSAGE) && !defined(__HAIKU__) and removing lines 43-45 be preferred?
There was a problem hiding this comment.
@xwu I've just refactored this change and it builds fine. Are there any more issues with this PR?
There was a problem hiding this comment.
@return I’ve only had a cursory look through the changes, but that’s all I’ve got for now :) Thanks for humoring me.
73d2334 to
070fdd6
Compare
|
@swift-ci please smoke test |
|
@return I suppose you could cherry-pick apple/swift-llvm@aea1537 in a PR for the stable branch. |
|
@korli I've sent a PR to swift-llvm. |
|
@swift-ci please smoke test |
070fdd6 to
67ace9b
Compare
|
@swift-ci please smoke test |
67ace9b to
0223b3f
Compare
|
(Drive by smoke test) @swift-ci smoke test |
stdlib/public/SwiftShims/LibcShims.h
Outdated
0223b3f to
e7d7ef8
Compare
|
LGTM |
|
@swift-ci please smoke test |
|
@return If you have no other qualms, this looks good to merge. |
|
@CodaFi These patches are also fine with me. |
|
⛵️ |
This pull request adds initial platform support for building swiftc and stdlib on 64bit Haiku (x86_64-unknown-haiku) using the build-script as part of my GSoC project with the Haiku project.
It also requires this commit, where the OS check is used here. Other than that, it builds and works fine on Haiku and I'm currently adding more support for the test-suite and the foundation libraries.
Resolves SR-NNNN.