Skip to content

Commit ddef3d0

Browse files
richardlautargos
authored andcommitted
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: #28238 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent b6f113b commit ddef3d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

node.gyp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,6 @@
10961096
'test/cctest/test_linked_binding.cc',
10971097
'test/cctest/test_per_process.cc',
10981098
'test/cctest/test_platform.cc',
1099-
'test/cctest/test_report_util.cc',
11001099
'test/cctest/test_traced_value.cc',
11011100
'test/cctest/test_util.cc',
11021101
'test/cctest/test_url.cc',
@@ -1134,6 +1133,9 @@
11341133
},
11351134
}],
11361135
[ 'node_report=="true"', {
1136+
'sources': [
1137+
'test/cctest/test_report_util.cc',
1138+
],
11371139
'defines': [
11381140
'NODE_REPORT',
11391141
'NODE_ARCH="<(target_arch)"',

0 commit comments

Comments
 (0)