@@ -142,7 +142,7 @@ pub fn initialize_build(
142
142
let rescript_version = helpers:: get_rescript_version ( & bsc_path) ;
143
143
144
144
if show_progress {
145
- println ! ( "{} {}Building package tree..." , style( "[1/7]" ) . bold( ) . dim( ) , TREE ) ;
145
+ print ! ( "{} {}Building package tree..." , style( "[1/7]" ) . bold( ) . dim( ) , TREE ) ;
146
146
let _ = stdout ( ) . flush ( ) ;
147
147
}
148
148
@@ -169,7 +169,7 @@ pub fn initialize_build(
169
169
let timing_source_files = Instant :: now ( ) ;
170
170
171
171
if show_progress {
172
- println ! (
172
+ print ! (
173
173
"{} {}Finding source files..." ,
174
174
style( "[2/7]" ) . bold( ) . dim( ) ,
175
175
LOOKING_GLASS
@@ -199,7 +199,7 @@ pub fn initialize_build(
199
199
. as_secs_f64( )
200
200
) ;
201
201
202
- println ! (
202
+ print ! (
203
203
"{} {}Reading compile state..." ,
204
204
style( "[3/7]" ) . bold( ) . dim( ) ,
205
205
COMPILE_STATE
@@ -221,7 +221,7 @@ pub fn initialize_build(
221
221
. as_secs_f64( )
222
222
) ;
223
223
224
- println ! (
224
+ print ! (
225
225
"{} {}Cleaning up previous build..." ,
226
226
style( "[4/7]" ) . bold( ) . dim( ) ,
227
227
SWEEP
@@ -373,6 +373,14 @@ pub fn incremental_build(
373
373
} else {
374
374
ProgressBar :: hidden ( )
375
375
} ;
376
+ pb. set_style (
377
+ ProgressStyle :: with_template ( & format ! (
378
+ "{} {}Compiling... {{spinner}} {{pos}}/{{len}} {{msg}}" ,
379
+ format_step( current_step, total_steps) ,
380
+ SWORDS
381
+ ) )
382
+ . unwrap ( ) ,
383
+ ) ;
376
384
377
385
let ( compile_errors, compile_warnings, num_compiled_modules) =
378
386
compile:: compile ( build_state, show_progress, || pb. inc ( 1 ) , |size| pb. set_length ( size) )
0 commit comments