diff options
| author | Fuwn <[email protected]> | 2022-02-08 17:42:53 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 00:46:06 -0700 |
| commit | e6d7fe6f9581fbd5be9ff252c1b81ac233672b6a (patch) | |
| tree | c57d716e4695fba69e6e3191b5efb24317021abf /crates | |
| parent | fix(readme): divina.land hyperlink (diff) | |
| download | archived-divina-e6d7fe6f9581fbd5be9ff252c1b81ac233672b6a.tar.xz archived-divina-e6d7fe6f9581fbd5be9ff252c1b81ac233672b6a.zip | |
fix(divina_compile): remedy workflow errors
Diffstat (limited to 'crates')
| -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()) |