Skip to content

Commit

Permalink
Add support for ppc64le (#5350)
Browse files Browse the repository at this point in the history
* Add support for ppc64le

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Try enabling zig

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Set linker via environment

---------

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 28, 2024
1 parent 41ba566 commit 1217787
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-tests.yml
Expand Up @@ -183,6 +183,16 @@ jobs:
rustup target add riscv64gc-unknown-linux-gnu &&
npm run build:napi -- --release --target riscv64gc-unknown-linux-gnu &&
riscv64-linux-gnu-strip *.node
- host: ubuntu-latest
target: powerpc64le-unknown-linux-gnu
setup: |
sudo apt-get update
sudo apt-get install gcc-powerpc64le-linux-gnu -y
build: >-
set -e &&
export CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER=powerpc64le-linux-gnu-gcc && rustup target add powerpc64le-unknown-linux-gnu &&
npm run build:napi -- --release --target powerpc64le-unknown-linux-gnu &&
powerpc64le-linux-gnu-strip *.node
- host: ubuntu-latest
target: s390x-unknown-linux-gnu
setup: |
Expand Down
1 change: 1 addition & 0 deletions native.js
Expand Up @@ -16,6 +16,7 @@ const bindingsByPlatformAndArch = {
linux: {
arm: { base: 'linux-arm-gnueabihf', musl: null },
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
ppc64le: { base: 'linux-ppc64le-gnu', musl: null },
riscv64: { base: 'linux-riscv64-gnu', musl: null },
s390x: { base: 'linux-s390x-gnu', musl: null },
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
Expand Down
3 changes: 3 additions & 0 deletions npm/linux-ppc64le-gnu/README.md
@@ -0,0 +1,3 @@
# `@rollup/rollup-linux-ppc64le-gnu`

This is the **ppc64le-unknown-linux-gnu** binary for `rollup`
22 changes: 22 additions & 0 deletions npm/linux-ppc64le-gnu/package.json
@@ -0,0 +1,22 @@
{
"name": "@rollup/rollup-linux-ppc64le-gnu",
"version": "0.0.0",
"os": [
"linux"
],
"cpu": [
"ppc64le"
],
"files": [
"rollup.linux-ppc64le-gnu.node"
],
"description": "Native bindings for Rollup",
"author": "Lukas Taegert-Atkinson",
"homepage": "https://rollupjs.org/",
"license": "MIT",
"repository": "rollup/rollup",
"libc": [
"glibc"
],
"main": "./rollup.linux-ppc64le-gnu.node"
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -25,6 +25,7 @@
"armv7-unknown-linux-gnueabihf",
"i686-pc-windows-msvc",
"riscv64gc-unknown-linux-gnu",
"ppc64le-unknown-linux-gnu",
"s390x-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
Expand Down

0 comments on commit 1217787

Please sign in to comment.