File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ async function main() {
27
27
28
28
const prebuildArch = getNodearch ( opts )
29
29
30
+ process . env . ARCH = prebuildArch
31
+ process . env . npm_config_arch = prebuildArch
32
+ process . env . npm_config_target_arch = prebuildArch
33
+ process . env . PREBUILD_arch = prebuildArch
34
+
30
35
// TODO test the triple feature
31
36
if ( typeof process . env . TRIPLE === "string" ) {
32
37
const TRIPLE = process . env . TRIPLE
@@ -38,10 +43,6 @@ async function main() {
38
43
const STRIP = `${ TRIPLE } -strip`
39
44
process . env . PREBUILD_STRIP_BIN = STRIP
40
45
41
- process . env . npm_config_arch = prebuildArch
42
- process . env . npm_config_target_arch = prebuildArch
43
- process . env . PREBUILD_arch = prebuildArch
44
-
45
46
process . env . ZMQ_BUILD_OPTIONS = `--host=${ TRIPLE } `
46
47
}
47
48
@@ -57,6 +58,7 @@ async function main() {
57
58
}
58
59
59
60
execaCommandSync ( prebuildScript , {
61
+ env : process . env ,
60
62
shell : true ,
61
63
windowsHide : true ,
62
64
stdio : "inherit" ,
You can’t perform that action at this time.
0 commit comments