mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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 <yh.wang@ibm.com> Backport-PR-URL: https://github.com/nodejs/node/pull/25758 PR-URL: https://github.com/nodejs/node/pull/21228 Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
1 parent
63522886ea
commit
c07ba9681f
2 files changed
+5
No files matched your search
@@ -961,6 +961,10 @@
|
||||
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
||||
},
|
||||
}],
|
||||
# Skip cctest while building shared lib node for Windows
|
||||
[ 'OS=="win" and node_shared=="true"', {
|
||||
'type': 'none',
|
||||
}],
|
||||
],
|
||||
}
|
||||
], # end targets
|
||||
|
||||
@@ -474,6 +474,7 @@ if errorlevel 1 goto exit
|
||||
if "%test_args%"=="" goto test-v8
|
||||
if "%config%"=="Debug" set test_args=--mode=debug %test_args%
|
||||
if "%config%"=="Release" set test_args=--mode=release %test_args%
|
||||
if not exist %config%\cctest.exe goto run-test-py
|
||||
echo running 'cctest %cctest_args%'
|
||||
"%config%\cctest" %cctest_args%
|
||||
REM when building a static library there's no binary to run tests
|
||||
|
||||
Reference in new issue
Block a user