0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

build: fix cctest target for --without-report

Conditionally build `test/cctest/test_report_util.cc` only when
configured to include the diagnostic report feature.

PR-URL: https://github.com/nodejs/node/pull/28238
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Richard Lau 2019-06-14 23:06:13 -04:00 committed by Ruben Bridgewater
parent b97b003c35
commit c72506c828
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -1096,7 +1096,6 @@
'test/cctest/test_linked_binding.cc',
'test/cctest/test_per_process.cc',
'test/cctest/test_platform.cc',
'test/cctest/test_report_util.cc',
'test/cctest/test_traced_value.cc',
'test/cctest/test_util.cc',
'test/cctest/test_url.cc',
@ -1134,6 +1133,9 @@
},
}],
[ 'node_report=="true"', {
'sources': [
'test/cctest/test_report_util.cc',
],
'defines': [
'NODE_REPORT',
'NODE_ARCH="<(target_arch)"',