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:
parent
3128ce55b5
commit
d3d6a81ffc
@ -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}'`
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user