Skip to content

Commit 273a54d

Browse files
committed
test using a JSON target file
1 parent eda9c91 commit 273a54d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ case $HOST_TARGET in
110110
MIRI_TEST_TARGET=aarch64-linux-android run_tests_minimal hello integer vec panic/panic
111111
MIRI_TEST_TARGET=wasm32-wasi MIRI_NO_STD=1 run_tests_minimal no_std # supports std but miri doesn't support it
112112
MIRI_TEST_TARGET=thumbv7em-none-eabihf MIRI_NO_STD=1 run_tests_minimal no_std # no_std embedded architecture
113+
MIRI_TEST_TARGET=tests/avr.json MIRI_NO_STD=1 run_tests_minimal no_std # JSON target file
113114
;;
114115
x86_64-apple-darwin)
115116
MIRI_TEST_TARGET=mips64-unknown-linux-gnuabi64 run_tests # big-endian architecture

tests/avr.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"arch": "avr",
3+
"cpu": "atmega328p",
4+
"data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
5+
"env": "",
6+
"executables": true,
7+
"linker": "avr-gcc",
8+
"linker-flavor": "gcc",
9+
"linker-is-gnu": true,
10+
"llvm-target": "avr-unknown-unknown",
11+
"no-compiler-rt": true,
12+
"os": "unknown",
13+
"position-independent-executables": false,
14+
"exe-suffix": ".elf",
15+
"eh-frame-header": false,
16+
"pre-link-args": {
17+
"gcc": ["-mmcu=atmega328p"]
18+
},
19+
"late-link-args": {
20+
"gcc": ["-lgcc"]
21+
},
22+
"target-c-int-width": "16",
23+
"target-endian": "little",
24+
"target-pointer-width": "16",
25+
"vendor": "unknown"
26+
}

0 commit comments

Comments
 (0)