fix loong64 crossbuild
Some checks failed
CI / test (20, ubuntu-latest) (push) Has been cancelled
CI / test (22, ubuntu-latest) (push) Has been cancelled
CI / test (24, ubuntu-latest) (push) Has been cancelled
Check Latest Node / check (20) (push) Has been cancelled
Check Latest Node / check (22) (push) Has been cancelled
Check Latest Node / check (24) (push) Has been cancelled
Some checks failed
CI / test (20, ubuntu-latest) (push) Has been cancelled
CI / test (22, ubuntu-latest) (push) Has been cancelled
CI / test (24, ubuntu-latest) (push) Has been cancelled
Check Latest Node / check (20) (push) Has been cancelled
Check Latest Node / check (22) (push) Has been cancelled
Check Latest Node / check (24) (push) Has been cancelled
This commit is contained in:
parent
236d01423e
commit
392a52b75e
@ -173,7 +173,7 @@ export async function need(opts: NeedOptions) {
|
||||
}
|
||||
|
||||
if (hostPlatform !== platform) {
|
||||
if ((hostPlatform !== 'alpine' || platform !== 'linuxstatic') && arch !== 'ppc64') {
|
||||
if ((hostPlatform !== 'alpine' || platform !== 'linuxstatic') && arch !== 'ppc64' && arch !== 'loong64') {
|
||||
throw wasReported(
|
||||
`Not able to build for '${opts.platform}' here, only for '${hostPlatform}'`
|
||||
);
|
||||
|
||||
26
readme-loong64.md
Normal file
26
readme-loong64.md
Normal file
@ -0,0 +1,26 @@
|
||||
# Loongarch64 cross build on debian13
|
||||
|
||||
```
|
||||
nvm install 24
|
||||
```
|
||||
|
||||
```
|
||||
export CC=loongarch64-unknown-linux-musl-gcc
|
||||
export CXX=loongarch64-unknown-linux-musl-g++
|
||||
export AR=loongarch64-unknown-linux-musl-gcc-ar
|
||||
export NM=loongarch64-unknown-linux-musl-gcc-nm
|
||||
export RANLIB=loongarch64-unknown-linux-musl-gcc-ranlib
|
||||
export READELF=loongarch64-unknown-linux-musl-readelf
|
||||
export STRIP=loongarch64-unknown-linux-musl-strip
|
||||
export CC_host=gcc-14
|
||||
export CXX_host=g++-14
|
||||
export AR_host=ar
|
||||
export NM_host=nm
|
||||
export RANLIB_host=ranlib
|
||||
export READELF_host=readelf
|
||||
```
|
||||
|
||||
```
|
||||
yarn install --ignore-engines
|
||||
yarn start --arch loong64 --node-range node24 --platform linuxstatic --output dist
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user