Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(next-swc): linux glibc compatible issue #34481

Merged
merged 2 commits into from Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
616 changes: 151 additions & 465 deletions .github/workflows/build_test_deploy.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/next-swc/.cargo/config.toml
Expand Up @@ -21,7 +21,7 @@ rustflags = [
]

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
linker = "aarch64-linux-musl-gcc"
rustflags = [
"-C",
"target-feature=-crt-static",
Expand Down
@@ -0,0 +1,3 @@
# `@next/swc-android-arm-eabi`

This is the **android-arm-eabi** binary for `@next/swc`
18 changes: 18 additions & 0 deletions packages/next-swc/crates/napi/npm/android-arm-eabi/package.json
@@ -0,0 +1,18 @@
{
"name": "@next/swc-android-arm-eabi",
"version": "0.0.0",
"os": [
"android"
],
"cpu": [
"arm"
],
"main": "next-swc.android-arm-eabi.node",
"files": [
"next-swc.android-arm-eabi.node"
],
"license": "MIT",
"engines": {
"node": ">= 10"
}
}
1 change: 1 addition & 0 deletions packages/next-swc/package.json
Expand Up @@ -16,6 +16,7 @@
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"arm-linux-androideabi",
"x86_64-unknown-freebsd",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Expand Up @@ -115,7 +115,7 @@
"@babel/traverse": "7.15.0",
"@babel/types": "7.15.0",
"@hapi/accept": "5.0.2",
"@napi-rs/cli": "1.2.1",
"@napi-rs/cli": "2.4.4",
"@napi-rs/triples": "1.0.3",
"@next/polyfill-module": "12.1.0",
"@next/polyfill-nomodule": "12.1.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/install-native.mjs
Expand Up @@ -19,6 +19,7 @@ import fs from 'fs-extra'
version: '1.0.0',
optionalDependencies: {
'@next/swc-android-arm64': 'canary',
'@next/swc-android-arm-eabi': 'canary',
'@next/swc-darwin-arm64': 'canary',
'@next/swc-darwin-x64': 'canary',
'@next/swc-linux-arm-gnueabihf': 'canary',
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3706,10 +3706,10 @@
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"

"@napi-rs/cli@1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@napi-rs/cli/-/cli-1.2.1.tgz#eccdf9e0835aec3adcef30074bf69c110ea65960"
integrity sha512-7FoYn1JSK5rTIG9KcKfYnZL/O0UjUMMuzZCXd//bJdkLw0Xx9EqQJs1X/Mg4KqywJYb79LDfxRMiJRSukPGDNw==
"@napi-rs/cli@2.4.4":
version "2.4.4"
resolved "https://registry.yarnpkg.com/@napi-rs/cli/-/cli-2.4.4.tgz#878a38f0fba1709d89d66eba706745ce728a61a5"
integrity sha512-f+tvwCv1ka24dBqI2DgBhR7Oxl3DKHOp4onxLXwyBFt6iCADnr3YZIr1/2Iq5r3uqxFgaf01bfPsRQZPkEp0kQ==

"@napi-rs/triples@1.0.3", "@napi-rs/triples@^1.0.3":
version "1.0.3"
Expand Down