diff --git a/crates/cli/src/build.rs b/crates/cli/src/build.rs index 54467770a0..8f7bbea9f1 100644 --- a/crates/cli/src/build.rs +++ b/crates/cli/src/build.rs @@ -65,7 +65,7 @@ pub fn build_file<'a>( emit_timings: bool, link_type: LinkType, linking_strategy: LinkingStrategy, - precompiled: bool, + prebuilt: bool, threading: Threading, wasm_dev_stack_bytes: Option, order: BuildOrdering, @@ -182,7 +182,7 @@ pub fn build_file<'a>( let rebuild_thread = spawn_rebuild_thread( opt_level, linking_strategy, - precompiled, + prebuilt, host_input_path.clone(), preprocessed_host_path.clone(), binary_path.clone(), @@ -261,7 +261,7 @@ pub fn build_file<'a>( let rebuild_timing = if linking_strategy == LinkingStrategy::Additive { let rebuild_duration = rebuild_thread.join().unwrap(); - if emit_timings && !precompiled { + if emit_timings && !prebuilt { println!( "Finished rebuilding and preprocessing the host in {} ms\n", rebuild_duration @@ -322,7 +322,7 @@ pub fn build_file<'a>( if let HostRebuildTiming::ConcurrentWithApp(thread) = rebuild_timing { let rebuild_duration = thread.join().unwrap(); - if emit_timings && !precompiled { + if emit_timings && !prebuilt { println!( "Finished rebuilding and preprocessing the host in {} ms\n", rebuild_duration @@ -397,7 +397,7 @@ pub fn build_file<'a>( fn spawn_rebuild_thread( opt_level: OptLevel, linking_strategy: LinkingStrategy, - precompiled: bool, + prebuilt: bool, host_input_path: PathBuf, preprocessed_host_path: PathBuf, binary_path: PathBuf, @@ -407,13 +407,13 @@ fn spawn_rebuild_thread( ) -> std::thread::JoinHandle { let thread_local_target = target.clone(); std::thread::spawn(move || { - if !precompiled { + if !prebuilt { println!("🔨 Rebuilding platform..."); } let rebuild_host_start = Instant::now(); - if !precompiled { + if !prebuilt { match linking_strategy { LinkingStrategy::Additive => { let host_dest = rebuild_host( diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index dcb4d4271a..237da59425 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -499,7 +499,7 @@ pub fn build( LinkingStrategy::Surgical }; - let precompiled = if matches.is_present(FLAG_PREBUILT) { + let prebuilt = if matches.is_present(FLAG_PREBUILT) { matches.value_of(FLAG_PREBUILT) == Some("true") } else { // When compiling for a different target, default to assuming a prebuilt platform. @@ -547,7 +547,7 @@ pub fn build( emit_timings, link_type, linking_strategy, - precompiled, + prebuilt, threading, wasm_dev_stack_bytes, build_ordering,