| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f5c65d0 commit e862eec
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1389,7 +1389,9 @@ def configure_node(o): | |||
| 1389 | 1389 | o['variables']['node_use_node_snapshot'] = b( | |
| 1390 | 1390 | not cross_compiling and not options.shared) | |
| 1391 | 1391 | ||
| 1392 | - if options.without_node_code_cache or options.without_node_snapshot or options.node_builtin_modules_path: | ||
| 1392 | + # Do not use code cache when Node.js is built for collecting coverage of itself, this allows more | ||
| 1393 | + # precise coverage for the JS built-ins. | ||
| 1394 | + if options.without_node_code_cache or options.without_node_snapshot or options.node_builtin_modules_path or options.coverage: | ||
| 1393 | 1395 | o['variables']['node_use_node_code_cache'] = 'false' | |
| 1394 | 1396 | else: | |
| 1395 | 1397 | # TODO(refack): fix this when implementing embedded code-cache when cross-compiling. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments