From 630a3069ca16ca6d07ec03c589bee12d5ff09f59 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Feb 2022 01:42:53 +0000 Subject: fix(divina_compile): remedy workflow errors --- crates/divina_compile/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/divina_compile/src/lib.rs b/crates/divina_compile/src/lib.rs index 70664fa..225504f 100644 --- a/crates/divina_compile/src/lib.rs +++ b/crates/divina_compile/src/lib.rs @@ -196,10 +196,10 @@ impl Compiler { }, &source.path, "-o", - if self.is_package { - &format!("out/{}.o", source.filename) + &if self.is_package { + format!("out/{}.o", source.filename) } else { - &format!("out/{}/{}.o", package.name, source.filename) + format!("out/{}/{}.o", package.name, source.filename) }, ]) .output() @@ -289,10 +289,10 @@ impl Compiler { "/lib64/ld-linux-x86-64.so.2", "-lc", "-o", - if self.is_package { - &format!("out/{}", package.name) + &if self.is_package { + format!("out/{}", package.name) } else { - &format!("out/{}/{}", package.name, package.name) + format!("out/{}/{}", package.name, package.name) }, ]) .args(filenames.iter()) -- cgit v1.2.3