diff options
| author | Fuwn <[email protected]> | 2022-02-09 01:42:53 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 07:46:06 +0000 |
| commit | 630a3069ca16ca6d07ec03c589bee12d5ff09f59 (patch) | |
| tree | c57d716e4695fba69e6e3191b5efb24317021abf | |
| parent | fix(readme): divina.land hyperlink (diff) | |
| download | divina-630a3069ca16ca6d07ec03c589bee12d5ff09f59.tar.xz divina-630a3069ca16ca6d07ec03c589bee12d5ff09f59.zip | |
fix(divina_compile): remedy workflow errors
| -rw-r--r-- | crates/divina_compile/src/lib.rs | 12 |
1 files 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()) |