Skip to content

Commit ca062a9

Browse files
committed
Push LLVM_PROFILE_FILE straight up
1 parent 0458080 commit ca062a9

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/node.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -138,28 +138,28 @@ where
138138
.map(|(k, v)| (k, v.to_string()))
139139
.collect();
140140

141-
if let Ok(llvm_profile_file) = std::env::var("LLVM_PROFILE_FILE") {
142-
let dir = std::path::Path::new(&llvm_profile_file)
143-
.parent()
144-
.unwrap_or(std::path::Path::new("target/llvm-cov-target"));
145-
146-
let filename = format!(
147-
"citrea-{}-{}-{}.profraw",
148-
kind,
149-
std::process::id(),
150-
generate_test_id()
151-
);
152-
153-
let modified_profile = dir.join(filename).to_string_lossy().into_owned();
154-
155-
println!(
156-
"Modified LLVM_PROFILE_FILE from {} to: {}",
157-
llvm_profile_file, modified_profile
158-
);
159-
env_vars.push(("LLVM_PROFILE_FILE", modified_profile));
160-
}
161-
162-
for var in &["RUSTFLAGS", "CARGO_LLVM_COV"] {
141+
// if let Ok(llvm_profile_file) = std::env::var("LLVM_PROFILE_FILE") {
142+
// let dir = std::path::Path::new(&llvm_profile_file)
143+
// .parent()
144+
// .unwrap_or(std::path::Path::new("target/llvm-cov-target"));
145+
146+
// let filename = format!(
147+
// "citrea-{}-{}-{}.profraw",
148+
// kind,
149+
// std::process::id(),
150+
// generate_test_id()
151+
// );
152+
153+
// let modified_profile = dir.join(filename).to_string_lossy().into_owned();
154+
155+
// println!(
156+
// "Modified LLVM_PROFILE_FILE from {} to: {}",
157+
// llvm_profile_file, modified_profile
158+
// );
159+
// env_vars.push(("LLVM_PROFILE_FILE", modified_profile));
160+
// }
161+
162+
for var in &["RUSTFLAGS", "CARGO_LLVM_COV", "LLVM_PROFILE_FILE"] {
163163
if let Ok(val) = std::env::var(var) {
164164
println!("Pushing var {var} and val {val}");
165165
env_vars.push((var, val));

0 commit comments

Comments
 (0)