Skip to content

Commit

Permalink
[AVR] Update the compiletest library to recognize AVR as a 16-bit target
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmckay committed May 17, 2020
1 parent 035fb8c commit 48ed083
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ pub fn matches_env(triple: &str, name: &str) -> bool {
pub fn get_pointer_width(triple: &str) -> &'static str {
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
"64bit"
} else if triple.starts_with("avr") {
"16bit"
} else {
"32bit"
}
Expand Down

0 comments on commit 48ed083

Please sign in to comment.