Skip to content

Add ability to use clang with GNU toolchain on Haiku#127392

Merged
jkoritzinsky merged 13 commits intodotnet:mainfrom
am11:patch-53
Apr 25, 2026
Merged

Add ability to use clang with GNU toolchain on Haiku#127392
jkoritzinsky merged 13 commits intodotnet:mainfrom
am11:patch-53

Conversation

@am11
Copy link
Copy Markdown
Member

@am11 am11 commented Apr 24, 2026

With this and #126701, clang (with Haiku-specific GNU toolchain) passes runtime build.
i.e.

$ podman run --rm -v ${pwd}:/runtime -w /runtime -e ROOTFS_DIR=/crossrootfs/x64 \
    mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11.0-cross-haiku-amd64 \
      src/coreclr/build-runtime.sh -cross -os haiku

...
Repo successfully built.
Product binaries are available at /runtime/artifacts/bin/coreclr/haiku.x64.Debug

@am11
Copy link
Copy Markdown
Member Author

am11 commented Apr 24, 2026

cc @trungnt2910

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Apr 24, 2026
@am11
Copy link
Copy Markdown
Member Author

am11 commented Apr 24, 2026

eng/common changes upstreamed dotnet/arcade#16756

@am11 am11 requested a review from jkoritzinsky April 24, 2026 16:42
@am11 am11 added the os-haiku label Apr 24, 2026
@am11
Copy link
Copy Markdown
Member Author

am11 commented Apr 25, 2026

Now src/coreclr/build-runtime.sh -cross -os haiku works with -gcc as well (that gcc binary is cross linux-x64 which comes from haiku's rootfs). @trungnt2910, just FYI, when we switch between gcc and clang, we must delete the previously built intermediate dir (rm -rf artifacts/obj/coreclr/haiku.x64.*) Incremental builds across compiler is not possible.

@jkoritzinsky jkoritzinsky merged commit 9d5ac96 into dotnet:main Apr 25, 2026
176 of 178 checks passed
@am11 am11 deleted the patch-53 branch April 25, 2026 16:30
@am11
Copy link
Copy Markdown
Member Author

am11 commented Apr 25, 2026

@jkoritzinsky, thanks. Could you please merge upstream PR (dotnet/arcade#16756) as well to keep them in sync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-PAL-coreclr community-contribution Indicates that the PR has been added by a community member os-haiku

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants