File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 3333use anyhow:: { bail, Context } ;
3434use pico_args:: Arguments ;
3535use regex_lite:: { Regex , RegexBuilder } ;
36- use std:: { ffi:: OsString , sync:: LazyLock } ;
36+ use std:: { ffi:: OsString , path :: Path , sync:: LazyLock } ;
3737use xshell:: Shell ;
3838
3939use crate :: util:: { git_version_at_least, parse_binary_from_cargo_json} ;
@@ -302,7 +302,15 @@ pub fn run_cts(
302302 } )
303303 . map ( |( key, value) | {
304304 let value = value. trim_matches ( '"' ) . trim_matches ( '\'' ) ;
305- ( key. to_string ( ) , value. to_string ( ) )
305+
306+ let key = if key == "CARGO_LLVM_COV_TARGET_DIR" {
307+ // TODO comment here
308+ Path :: new ( key) . join ( "llvm-cov-target" ) . into_os_string ( ) . into_string ( ) . unwrap ( )
309+ } else {
310+ key. to_string ( )
311+ } ;
312+
313+ ( key, value. to_string ( ) )
306314 } )
307315 . collect :: < Vec < _ > > ( )
308316 . into_iter ( ) ;
You can’t perform that action at this time.
0 commit comments