File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1040,7 +1040,7 @@ def configure_node(o):
1040
1040
1041
1041
cross_compiling = (options .cross_compiling
1042
1042
if options .cross_compiling is not None
1043
- else host_arch not in ( target_arch , "x64" , "ia32" ) )
1043
+ else target_arch != host_arch )
1044
1044
if cross_compiling :
1045
1045
os .environ ['GYP_CROSSCOMPILE' ] = "1"
1046
1046
if options .unused_without_snapshot :
Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ if defined config_flags set configure_flags=%configure_flags% %config_flags%
196
196
if defined target_arch set configure_flags = %configure_flags% --dest-cpu=%target_arch%
197
197
if defined openssl_no_asm set configure_flags = %configure_flags% --openssl-no-asm
198
198
if defined DEBUG_HELPER set configure_flags = %configure_flags% --verbose
199
- if " %target_arch% " == " arm64" set configure_flags = %configure_flags% --cross-compiling
199
+ if " %target_arch% " == " x86" if " %PROCESSOR_ARCHITECTURE% " == " AMD64" set configure_flags = %configure_flags% --no-cross-compiling
200
+ if " %target_arch% " == " arm64" set configure_flags = %configure_flags% --cross-compiling
200
201
201
202
if not exist " %~dp0 deps\icu" goto no-depsicu
202
203
if " %target% " == " Clean" echo deleting %~dp0 deps\icu
You can’t perform that action at this time.
0 commit comments