@napi-rs/cli 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -9
- package/dist/index.cjs +6 -9
- package/dist/index.js +6 -9
- package/package.json +3 -4
- package/src/api/build.ts +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@napi-rs/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Cli tools for napi-rs",
|
|
5
5
|
"author": "LongYinan <lynweklm@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/napi-rs/napi-rs",
|
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
"js-yaml": "^4.1.0",
|
|
80
80
|
"lodash-es": "^4.17.21",
|
|
81
81
|
"semver": "^7.7.1",
|
|
82
|
-
"typanion": "^3.14.0"
|
|
83
|
-
"wasm-sjlj": "^1.0.6"
|
|
82
|
+
"typanion": "^3.14.0"
|
|
84
83
|
},
|
|
85
84
|
"devDependencies": {
|
|
86
85
|
"@emnapi/core": "^1.4.0",
|
|
@@ -132,5 +131,5 @@
|
|
|
132
131
|
"e2e/**/*.spec.ts"
|
|
133
132
|
]
|
|
134
133
|
},
|
|
135
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "521b5774aa89f1a7c807a6ddba509ce43973f624"
|
|
136
135
|
}
|
package/src/api/build.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { homedir } from 'node:os'
|
|
|
6
6
|
import { parse, join, resolve } from 'node:path'
|
|
7
7
|
|
|
8
8
|
import * as colors from 'colorette'
|
|
9
|
-
import { include as setjmpInclude, lib as setjmpLib } from 'wasm-sjlj'
|
|
10
9
|
|
|
11
10
|
import { BuildOptions as RawBuildOptions } from '../def/build.js'
|
|
12
11
|
import {
|
|
@@ -591,7 +590,6 @@ class Builder {
|
|
|
591
590
|
'wasm32-wasi-threads',
|
|
592
591
|
)
|
|
593
592
|
this.envs.EMNAPI_LINK_DIR = emnapi
|
|
594
|
-
this.envs.SETJMP_LINK_DIR = setjmpLib
|
|
595
593
|
const { WASI_SDK_PATH } = process.env
|
|
596
594
|
|
|
597
595
|
if (WASI_SDK_PATH && existsSync(WASI_SDK_PATH)) {
|
|
@@ -627,11 +625,11 @@ class Builder {
|
|
|
627
625
|
)
|
|
628
626
|
this.setEnvIfNotExists(
|
|
629
627
|
'TARGET_CFLAGS',
|
|
630
|
-
`--target=wasm32-wasi-threads --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot -pthread -mllvm -wasm-enable-sjlj
|
|
628
|
+
`--target=wasm32-wasi-threads --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot -pthread -mllvm -wasm-enable-sjlj`,
|
|
631
629
|
)
|
|
632
630
|
this.setEnvIfNotExists(
|
|
633
631
|
'TARGET_CXXFLAGS',
|
|
634
|
-
`--target=wasm32-wasi-threads --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot -pthread -mllvm -wasm-enable-sjlj
|
|
632
|
+
`--target=wasm32-wasi-threads --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot -pthread -mllvm -wasm-enable-sjlj`,
|
|
635
633
|
)
|
|
636
634
|
this.setEnvIfNotExists(
|
|
637
635
|
`TARGET_LDFLAGS`,
|