Skip to content

Commit 1217787

Browse files
Add support for ppc64le (#5350)
* 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>
1 parent 41ba566 commit 1217787

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

.github/workflows/build-and-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ jobs:
183183
rustup target add riscv64gc-unknown-linux-gnu &&
184184
npm run build:napi -- --release --target riscv64gc-unknown-linux-gnu &&
185185
riscv64-linux-gnu-strip *.node
186+
- host: ubuntu-latest
187+
target: powerpc64le-unknown-linux-gnu
188+
setup: |
189+
sudo apt-get update
190+
sudo apt-get install gcc-powerpc64le-linux-gnu -y
191+
build: >-
192+
set -e &&
193+
export CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER=powerpc64le-linux-gnu-gcc && rustup target add powerpc64le-unknown-linux-gnu &&
194+
npm run build:napi -- --release --target powerpc64le-unknown-linux-gnu &&
195+
powerpc64le-linux-gnu-strip *.node
186196
- host: ubuntu-latest
187197
target: s390x-unknown-linux-gnu
188198
setup: |

native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const bindingsByPlatformAndArch = {
1616
linux: {
1717
arm: { base: 'linux-arm-gnueabihf', musl: null },
1818
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
19+
ppc64le: { base: 'linux-ppc64le-gnu', musl: null },
1920
riscv64: { base: 'linux-riscv64-gnu', musl: null },
2021
s390x: { base: 'linux-s390x-gnu', musl: null },
2122
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }

npm/linux-ppc64le-gnu/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@rollup/rollup-linux-ppc64le-gnu`
2+
3+
This is the **ppc64le-unknown-linux-gnu** binary for `rollup`

npm/linux-ppc64le-gnu/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "@rollup/rollup-linux-ppc64le-gnu",
3+
"version": "0.0.0",
4+
"os": [
5+
"linux"
6+
],
7+
"cpu": [
8+
"ppc64le"
9+
],
10+
"files": [
11+
"rollup.linux-ppc64le-gnu.node"
12+
],
13+
"description": "Native bindings for Rollup",
14+
"author": "Lukas Taegert-Atkinson",
15+
"homepage": "https://rollupjs.org/",
16+
"license": "MIT",
17+
"repository": "rollup/rollup",
18+
"libc": [
19+
"glibc"
20+
],
21+
"main": "./rollup.linux-ppc64le-gnu.node"
22+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"armv7-unknown-linux-gnueabihf",
2626
"i686-pc-windows-msvc",
2727
"riscv64gc-unknown-linux-gnu",
28+
"ppc64le-unknown-linux-gnu",
2829
"s390x-unknown-linux-gnu",
2930
"x86_64-apple-darwin",
3031
"x86_64-pc-windows-msvc",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy