Skip to content

Commit

Permalink
fix: optional output
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <[email protected]>
  • Loading branch information
aoyako committed Dec 2, 2024
1 parent 92e2228 commit 7980eae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/iroha_wasm_builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ mod internal {
pub fn build(self) -> Result<Output> {
let absolute_path = self.absolute_path.clone();
let optimize = self.profile == OPTIMIZED_PROFILE;
let show_output = self.show_output;
let output = self.build_smartcontract().wrap_err_with(|| {
format!(
"Failed to build the smartcontract at path: {}",
Expand All @@ -195,7 +196,7 @@ mod internal {
})?;

if optimize {
let sp = if std::env::var("CI").is_err() {
let sp = if show_output && std::env::var("CI").is_err() {
Some(spinoff::Spinner::new_with_stream(
spinoff::spinners::Binary,
"Optimizing the output",
Expand Down

0 comments on commit 7980eae

Please sign in to comment.