Skip to content

Commit

Permalink
Add conformity of clang targets for e2k. Set dwarf-2 version for e2k …
Browse files Browse the repository at this point in the history
…compilers, lcc supports dwarf-2 only, clang supports nothing..
  • Loading branch information
helce committed Jan 26, 2023
1 parent 203a57f commit fc4d491
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,17 @@ impl Build {
} else if target.contains("aarch64") {
cmd.args.push("--target=aarch64-unknown-windows-gnu".into())
}
} else if target.starts_with("e2k") {
cmd.args.push("--target=e2k64-unknown-linux-gnu".into());
if target.starts_with("e2kv3") {
cmd.args.push("-march=elbrus-v3".into());
} else if target.starts_with("e2kv4") {
cmd.args.push("-march=elbrus-v4".into());
} else if target.starts_with("e2kv5") {
cmd.args.push("-march=elbrus-v5".into());
} else if target.starts_with("e2kv6") {
cmd.args.push("-march=elbrus-v6".into());
}
} else {
cmd.push_cc_arg(format!("--target={}", target).into());
}
Expand Down Expand Up @@ -2925,6 +2936,7 @@ impl Build {
|| target.contains("netbsd")
|| target.contains("openbsd")
|| target.contains("windows-gnu")
|| target.contains("e2k")
{
Some(2)
} else if target.contains("linux") {
Expand Down

0 comments on commit fc4d491

Please sign in to comment.