Skip to content

Commit 35d9741

Browse files
richard-townsend-armTrott
authored andcommitted
build: zlib build error on Windows on Arm
Zlib's SIMD optimizations are not supported in MSVC, so fall back to the C versions for now. PR-URL: nodejs#33511 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent ce5e324 commit 35d9741

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,13 @@
16051605
'toolsets': ['host', 'target'],
16061606
}],
16071607
['OS=="win"', {
1608-
'defines': ['X86_WINDOWS'],
1608+
'conditions': [
1609+
['"<(target_arch)"=="arm64" and _toolset=="target"', {
1610+
'defines': ['CPU_NO_SIMD']
1611+
}, {
1612+
'defines': ['X86_WINDOWS']
1613+
}]
1614+
]
16091615
}],
16101616
],
16111617
'direct_dependent_settings': {

0 commit comments

Comments
 (0)