Skip to content

Commit 48ed083

Browse files
committed
[AVR] Update the compiletest library to recognize AVR as a 16-bit target
1 parent 035fb8c commit 48ed083

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ pub fn matches_env(triple: &str, name: &str) -> bool {
115115
pub fn get_pointer_width(triple: &str) -> &'static str {
116116
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
117117
"64bit"
118+
} else if triple.starts_with("avr") {
119+
"16bit"
118120
} else {
119121
"32bit"
120122
}

0 commit comments

Comments
 (0)