File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
turbopack/crates/turbopack-cli Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
use turbo_tasks_build:: generate_register;
2
2
3
3
fn main ( ) {
4
+ println ! ( "cargo::rustc-check-cfg=cfg(codspeed)" ) ;
5
+
4
6
generate_register ( ) ;
5
7
}
Original file line number Diff line number Diff line change @@ -24,16 +24,15 @@ static ALLOC: TurboMalloc = TurboMalloc;
24
24
fn main ( ) {
25
25
let args = Arguments :: parse ( ) ;
26
26
27
- tokio:: runtime:: Builder :: new_multi_thread ( )
28
- . enable_all ( )
29
- . on_thread_stop ( || {
30
- TurboMalloc :: thread_stop ( ) ;
31
- } )
32
- . disable_lifo_slot ( )
33
- . build ( )
34
- . unwrap ( )
35
- . block_on ( main_inner ( args) )
36
- . unwrap ( ) ;
27
+ let mut rt = tokio:: runtime:: Builder :: new_multi_thread ( ) ;
28
+ rt. enable_all ( ) . on_thread_stop ( || {
29
+ TurboMalloc :: thread_stop ( ) ;
30
+ } ) ;
31
+
32
+ #[ cfg( not( codspeed) ) ]
33
+ rt. disable_lifo_slot ( ) ;
34
+
35
+ rt. build ( ) . unwrap ( ) . block_on ( main_inner ( args) ) . unwrap ( ) ;
37
36
}
38
37
39
38
async fn main_inner ( args : Arguments ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments