eng/common: detect FreeBSD/powerpc64le#17062
Open
pkubaj wants to merge 1 commit into
Open
Conversation
Author
|
@dotnet-policy-service agree |
* native/init-os-and-arch.sh: on FreeBSD use `uname -p` to determine the CPU (uname -m returns "powerpc" for every PowerPC variant) and accept powerpc64le. * cross/toolchain.cmake: emit the FreeBSD clang target triple for ppc64le.
95a2557 to
f049c53
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Teaches the shared eng/common native bootstrap to identify FreeBSD on PowerPC. (eng/common is vendored into the product repos from here, so this is the canonical place for the fix.)
eng/common/native/init-os-and-arch.sh: on FreeBSD, derive the CPU fromuname -p.uname -mreturns "powerpc" for every PowerPC variant (32/64-bit, BE/LE), which the existing logic rejects as an unknown CPU. Adds the powerpc64le case.eng/common/cross/toolchain.cmake: emit the FreeBSD clang target triple for the ppc64le cross toolchain.Testing: used to cross-build and then natively source-build the v9.0.115 VMR on FreeBSD/ppc64le. Part of a FreeBSD/powerpc64le (ppc64le) port. Sibling PRs: dotnet/runtime (PAL/platform), dotnet/arcade (eng/common detection), dotnet/sdk, dotnet/fsharp.
I have signed (or will sign on the dnfadmin bot's prompt) the .NET Foundation CLA.