@@ -119,7 +119,7 @@ where
119
119
120
120
let kind = config. kind ( ) ;
121
121
122
- debug ! ( "Spawning {kind} with config {config:?}" , ) ;
122
+ debug ! ( "Spawning {kind} with config {config:?}" ) ;
123
123
124
124
let stdout_path = config. log_path ( ) ;
125
125
let stdout_file = File :: create ( & stdout_path) . context ( "Failed to create stdout file" ) ?;
@@ -138,28 +138,27 @@ where
138
138
. map ( |( k, v) | ( k, v. to_string ( ) ) )
139
139
. collect ( ) ;
140
140
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" ) ) ;
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
145
146
- let filename = format ! ( "citrea-{}-%p-%m.profraw" , kind) ;
146
+ // let filename = format!("citrea-{}-%p-%m.profraw", kind);
147
147
148
- let modified_profile = dir. join ( filename) . to_string_lossy ( ) . into_owned ( ) ;
148
+ // let modified_profile = dir.join(filename).to_string_lossy().into_owned();
149
149
150
- println ! (
151
- "Modified LLVM_PROFILE_FILE from {} to: {}" ,
152
- llvm_profile_file, modified_profile
153
- ) ;
154
- env_vars. push ( ( "LLVM_PROFILE_FILE" , modified_profile) ) ;
155
- }
150
+ // println!(
151
+ // "Modified LLVM_PROFILE_FILE from {} to: {}",
152
+ // llvm_profile_file, modified_profile
153
+ // );
154
+ // env_vars.push(("LLVM_PROFILE_FILE", modified_profile));
155
+ // }
156
156
157
- for var in & [ "RUSTFLAGS" , "CARGO_LLVM_COV" ] {
157
+ for var in & [ "RUSTFLAGS" , "CARGO_LLVM_COV" , "LLVM_PROFILE_FILE" ] {
158
158
if let Ok ( val) = std:: env:: var ( var) {
159
159
env_vars. push ( ( var, val) ) ;
160
160
}
161
161
}
162
- println ! ( "env_vars : {:?}" , env_vars) ;
163
162
164
163
Command :: new ( & citrea)
165
164
. args ( get_citrea_args ( config) )
0 commit comments