Skip to content

Commit

Permalink
Add SOLID target support
Browse files Browse the repository at this point in the history
  • Loading branch information
kawadakk committed Aug 17, 2021
1 parent 05a8062 commit 3e47f5f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1614,6 +1614,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 @@ -1625,7 +1629,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 @@ -2166,6 +2170,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 3e47f5f

Please sign in to comment.