feat: allow linuxstatic builds for ppc64 architecture (#118)

## Summary
Allow linuxstatic platform builds for ppc64 architecture by bypassing
the platform validation check.

## Changes
- Modified the platform validation logic in `lib/index.ts` to skip the
platform mismatch check when building for ppc64 architecture
- Added `&& arch !== 'ppc64'` condition to allow linuxstatic builds on
ppc64 without validation errors


## Impact
- Users can now build linuxstatic binaries for ppc64 architecture
without platform validation blocking the process
- No breaking changes to existing functionality
- Maintains existing platform validation for other architectures except
ppc64

## Use Case
This enables building static Linux binaries on ppc64 systems, which is
particularly useful for PowerPC environments that need statically linked
executables.

---------

Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
This commit is contained in:
ranjith 2025-10-06 14:24:59 +05:30 committed by GitHub
parent 3128ce55b5
commit d3d6a81ffc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,7 +173,7 @@ export async function need(opts: NeedOptions) {
}
if (hostPlatform !== platform) {
if (hostPlatform !== 'alpine' || platform !== 'linuxstatic') {
if ((hostPlatform !== 'alpine' || platform !== 'linuxstatic') && arch !== 'ppc64') {
throw wasReported(
`Not able to build for '${opts.platform}' here, only for '${hostPlatform}'`
);