Skip to content

Commit 5f9f874

Browse files
committed
[AVR] Update the compiletest library to recognize AVR as a 16-bit target
1 parent 8029364 commit 5f9f874

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/util.rs

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ pub fn matches_env(triple: &str, name: &str) -> bool {
114114
pub fn get_pointer_width(triple: &str) -> &'static str {
115115
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
116116
"64bit"
117+
} else if triple.starts_with("avr") {
118+
"16bit"
117119
} else {
118120
"32bit"
119121
}

0 commit comments

Comments
 (0)