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 Jun 10, 2021
1 parent 19320dd commit 801106d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib.rs
Expand Up @@ -1545,6 +1545,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 @@ -1556,7 +1560,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 @@ -2082,6 +2086,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 801106d

Please sign in to comment.