Skip to content

Commit 29cf335

Browse files
yhwangaddaleax
authored andcommitted
build: skip cctest on Windows shared lib build
cctest depends on some internal APIs which don't declare `__declspec(dllexport)` and causes build failure when building node as shared lib on Windows. Since we already have good test coverage in static lib, we decide to skip the cctest in shared lib build on Windows. Signed-off-by: Yihong Wang <[email protected]> PR-URL: #21228 Reviewed-By: Refael Ackermann <[email protected]>
1 parent 4286dcf commit 29cf335

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

node.gyp

+4
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,10 @@
10021002
['OS=="solaris"', {
10031003
'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
10041004
}],
1005+
# Skip cctest while building shared lib node for Windows
1006+
[ 'OS=="win" and node_shared=="true"', {
1007+
'type': 'none',
1008+
}],
10051009
],
10061010
}
10071011
], # end targets

vcbuild.bat

+1
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ if "%test_args%"=="" goto test-v8
529529
if "%config%"=="Debug" set test_args=--mode=debug %test_args%
530530
if "%config%"=="Release" set test_args=--mode=release %test_args%
531531
if defined no_cctest echo Skipping cctest because no-cctest was specified && goto run-test-py
532+
if not exist %config%\cctest.exe goto run-test-py
532533
echo running 'cctest %cctest_args%'
533534
"%config%\cctest" %cctest_args%
534535
:run-test-py

0 commit comments

Comments
 (0)