fix: target system

add: new field in dcr.toml - filename, extension
This commit is contained in:
2026-05-21 00:02:24 +08:00
parent c4a49cb345
commit 9ad968374e
6 changed files with 60 additions and 11 deletions

View File

@@ -26,6 +26,8 @@ pub struct BuildContext<'a> {
pub libs: &'a [String],
pub cflags: &'a [String],
pub ldflags: &'a [String],
pub output_filename: Option<&'a str>,
pub output_extension: Option<&'a str>,
}
pub fn build(ctx: &BuildContext) -> Result<f64, String> {