Skip to content

Commit 54e5c36

Browse files
richard-townsend-armBridgeAR
authored andcommitted
build: fix GetCurrentThreadStackLimits error on Windows on Arm
GetCurrentThreadStackLimits is a fairly new API, so it requires a _WIN32_WINNT value of at least 0x0602 to compile successfully. Change-Id: Ib3bc24513453aa37bee68f4a6999cefc26947cb1 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 99abaf9 commit 54e5c36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,10 @@
10731073
'<(V8_ROOT)/src/base/platform/platform-win32.cc',
10741074
'<(V8_ROOT)/src/base/win32-headers.h',
10751075
],
1076-
1077-
'defines': ['_CRT_RAND_S'], # for rand_s()
1076+
'conditions': [['target_arch == "arm64"', {
1077+
'defines': ['_WIN32_WINNT=0x0602'], # For GetCurrentThreadStackLimits on Windows on Arm
1078+
}]],
1079+
'defines': ['_CRT_RAND_S'], # for rand_s()
10781080
'direct_dependent_settings': {
10791081
'msvs_settings': {
10801082
'VCLinkerTool': {

0 commit comments

Comments
 (0)