aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-07 23:50:01 -0800
committerFuwn <[email protected]>2025-06-09 00:46:11 -0700
commitaa75a80f11eee6f65f22aea924d6a22da777b407 (patch)
treefbf5db893edb2642a3c85c7bd7eaadfcfafff1cf
parentrefactor(divina_compile): move all Commands to shellfn (diff)
downloadarchived-divina-aa75a80f11eee6f65f22aea924d6a22da777b407.tar.xz
archived-divina-aa75a80f11eee6f65f22aea924d6a22da777b407.zip
fix(divina_compile): linking
-rw-r--r--crates/divina_compile/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/divina_compile/src/lib.rs b/crates/divina_compile/src/lib.rs
index a42e67a..5f142cd 100644
--- a/crates/divina_compile/src/lib.rs
+++ b/crates/divina_compile/src/lib.rs
@@ -277,7 +277,7 @@ impl Compiler {
} else {
format!("out/{}/{}", package.name, package.name)
},
- filenames.join(" "),
+ &filenames.join(" "),
);
#[cfg(windows)]
@@ -310,6 +310,8 @@ impl Compiler {
#[cfg(unix)]
#[rustfmt::skip] // Preserve raw string literal positions
mod unix {
+ use shellfn::shell;
+
#[shell]
pub fn compile(compiler: &str, architecture: &str, source_path: &str, out_file: &str) -> String { r#"
$COMPILER -f $ARCHITECTURE $SOURCE_PATH -o $OUT_FILE