Skip to content

Commit

Permalink
Add SOLID target support (#609)
Browse files Browse the repository at this point in the history
* Add SOLID target support

* kmc-solid: Change `target_os` to `solid_asp3`
  • Loading branch information
kawadakk committed Sep 29, 2021
1 parent b2792e3 commit d7e7c77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib.rs
Expand Up @@ -1620,6 +1620,10 @@ impl Build {
}
}

if target.contains("-kmc-solid_") {
cmd.args.push("-finput-charset=utf-8".into());
}

if self.static_flag.is_none() {
let features = self
.getenv("CARGO_CFG_TARGET_FEATURE")
Expand All @@ -1631,7 +1635,7 @@ impl Build {

// armv7 targets get to use armv7 instructions
if (target.starts_with("armv7") || target.starts_with("thumbv7"))
&& target.contains("-linux-")
&& (target.contains("-linux-") || target.contains("-kmc-solid_"))
{
cmd.args.push("-march=armv7-a".into());
}
Expand Down Expand Up @@ -2187,6 +2191,10 @@ impl Build {
} else {
"wr-cc".to_string()
}
} else if target.starts_with("armv7a-kmc-solid_") {
format!("arm-kmc-eabi-{}", gnu)
} else if target.starts_with("aarch64-kmc-solid_") {
format!("aarch64-kmc-elf-{}", gnu)
} else if self.get_host()? != target {
let prefix = self.prefix_for_target(&target);
match prefix {
Expand Down

0 comments on commit d7e7c77

Please sign in to comment.