Skip to content

Commit 3c9a89d

Browse files
committed
experiment
1 parent 8486ff9 commit 3c9a89d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

xtask/src/cts.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
use anyhow::{bail, Context};
3434
use pico_args::Arguments;
3535
use regex_lite::{Regex, RegexBuilder};
36-
use std::{ffi::OsString, sync::LazyLock};
36+
use std::{ffi::OsString, path::Path, sync::LazyLock};
3737
use xshell::Shell;
3838

3939
use 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();

0 commit comments

Comments
 (0)