Skip to content

Commit

Permalink
build: linux glibc compatible issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Feb 17, 2022
1 parent 1edd851 commit 5ae6825
Show file tree
Hide file tree
Showing 8 changed files with 191 additions and 476 deletions.
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
3 changes: 3 additions & 0 deletions packages/next-swc/crates/napi/npm/android-arm-eabi/README.md
@@ -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.0.11-canary.20",
"@next/polyfill-nomodule": "12.0.11-canary.20",
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
24 changes: 15 additions & 9 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.npmjs.org/@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 Expand Up @@ -4501,9 +4501,9 @@
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.5.tgz#b14efa8852b7768d898906613c23f688713e02cd"

"@types/eslint-scope@^3.7.3":
"@types/eslint-scope@^3.7.0", "@types/eslint-scope@^3.7.3":
version "3.7.3"
resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.3.tgz#125b88504b61e3c8bc6f870882003253005c3224"
resolved "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz#125b88504b61e3c8bc6f870882003253005c3224"
integrity sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==
dependencies:
"@types/eslint" "*"
Expand All @@ -4526,6 +4526,11 @@
version "0.0.39"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"

"@types/estree@^0.0.50":
version "0.0.50"
resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz#1e0caa9364d3fccd2931c3ed96fdbeaa5d4cca83"
integrity sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==

"@types/estree@^0.0.51":
version "0.0.51"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.51.tgz#cfd70924a25a3fd32b218e5e420e6897e1ac4f40"
Expand Down Expand Up @@ -8878,9 +8883,9 @@ enhanced-resolve@^4.3.0:
memory-fs "^0.5.0"
tapable "^1.0.0"

enhanced-resolve@^5.9.0:
enhanced-resolve@^5.8.3, enhanced-resolve@^5.9.0:
version "5.9.0"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.9.0.tgz#49ac24953ac8452ed8fed2ef1340fc8e043667ee"
resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.0.tgz#49ac24953ac8452ed8fed2ef1340fc8e043667ee"
integrity sha512-weDYmzbBygL7HzGGS26M3hGQx68vehdEg6VUmqSOaFzXExFqlnKuSvsEJCVGQHScS8CQMbrAqftT+AzzHNt/YA==
dependencies:
graceful-fs "^4.2.4"
Expand Down Expand Up @@ -14289,6 +14294,7 @@ minipass-fetch@^1.3.0, minipass-fetch@^1.3.2:
resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-1.3.3.tgz#34c7cea038c817a8658461bf35174551dce17a0a"
integrity sha512-akCrLDWfbdAWkMLBxJEeWTdNsjML+dt5YgOI4gJ53vuO0vrmYQkUPxa6j6V65s9CcePIr2SSWqjT2EcrNseryQ==
dependencies:
encoding "^0.1.12"
minipass "^3.1.0"
minipass-sized "^1.0.3"
minizlib "^2.0.0"
Expand Down Expand Up @@ -20812,7 +20818,7 @@ webpack-bundle-analyzer@4.3.0:
source-list-map "^2.0.0"
source-map "~0.6.1"

"webpack-sources3@npm:webpack-sources@3.2.3", webpack-sources@^3.2.2, webpack-sources@^3.2.3:
"webpack-sources3@npm:webpack-sources@3.2.3", webpack-sources@^3.2.3:
version "3.2.3"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
Expand Down

0 comments on commit 5ae6825

Please sign in to comment.