File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
misc/python/materialize/cli Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ def main() -> int:
114
114
help = "Disables the limited codesigning we do on macOS to support Instruments" ,
115
115
action = "store_true" ,
116
116
)
117
+ parser .add_argument (
118
+ "--coverage" ,
119
+ help = "Build with coverage" ,
120
+ action = "store_true" ,
121
+ )
117
122
args = parser .parse_intermixed_args ()
118
123
119
124
# Handle `+toolchain` like rustup.
@@ -262,6 +267,8 @@ def _build(args: argparse.Namespace, extra_programs: list[str] = []) -> int:
262
267
if args .tokio_console :
263
268
features += ["tokio-console" ]
264
269
env ["RUSTFLAGS" ] = env .get ("RUSTFLAGS" , "" ) + " --cfg=tokio_unstable"
270
+ if args .coverage :
271
+ env ["RUSTFLAGS" ] = env .get ("RUSTFLAGS" , "" ) + " -Cinstrument-coverage"
265
272
if args .features :
266
273
features .extend (args .features .split ("," ))
267
274
if features :
You can’t perform that action at this time.
0 commit comments