@@ -142,7 +142,7 @@ pub fn initialize_build(
142142 let rescript_version = helpers:: get_rescript_version ( & bsc_path) ;
143143
144144 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 ) ;
146146 let _ = stdout ( ) . flush ( ) ;
147147 }
148148
@@ -169,7 +169,7 @@ pub fn initialize_build(
169169 let timing_source_files = Instant :: now ( ) ;
170170
171171 if show_progress {
172- println ! (
172+ print ! (
173173 "{} {}Finding source files..." ,
174174 style( "[2/7]" ) . bold( ) . dim( ) ,
175175 LOOKING_GLASS
@@ -199,7 +199,7 @@ pub fn initialize_build(
199199 . as_secs_f64( )
200200 ) ;
201201
202- println ! (
202+ print ! (
203203 "{} {}Reading compile state..." ,
204204 style( "[3/7]" ) . bold( ) . dim( ) ,
205205 COMPILE_STATE
@@ -221,7 +221,7 @@ pub fn initialize_build(
221221 . as_secs_f64( )
222222 ) ;
223223
224- println ! (
224+ print ! (
225225 "{} {}Cleaning up previous build..." ,
226226 style( "[4/7]" ) . bold( ) . dim( ) ,
227227 SWEEP
@@ -373,6 +373,14 @@ pub fn incremental_build(
373373 } else {
374374 ProgressBar :: hidden ( )
375375 } ;
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+ ) ;
376384
377385 let ( compile_errors, compile_warnings, num_compiled_modules) =
378386 compile:: compile ( build_state, show_progress, || pb. inc ( 1 ) , |size| pb. set_length ( size) )
0 commit comments