Skip to content

Commit b7fe0b4

Browse files
committed
Auto merge of rust-lang#3915 - RalfJung:target-json-test, r=RalfJung
switch custom target JSON test to a less exotic target We used to test an AVR target here, but while it is nice to test a 16bit target, it is also currently the case that rustc CI does not even check that libcore builds on a 16bit target -- and we don't want Miri to be in the game of maintaining that support. (See rust-lang#130818.) So let's use a tier 2 target as the basis for testing a custom JSON target. (FWIW, we also test wasm32-wasip2 which is tier 3, but I expect it will become tier 2 Soon-ish.)
2 parents 4ef8f60 + 897e941 commit b7fe0b4

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

src/tools/miri/ci/ci.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ case $HOST_TARGET in
159159
TEST_TARGET=wasm32-unknown-unknown run_tests_minimal no_std empty_main wasm # this target doesn't really have std
160160
TEST_TARGET=thumbv7em-none-eabihf run_tests_minimal no_std
161161
# Custom target JSON file
162-
# FIXME: disabled due to <https://github.com/rust-lang/rust/issues/130818>.
163-
#TEST_TARGET=tests/avr.json MIRI_NO_STD=1 run_tests_minimal no_std
162+
TEST_TARGET=tests/x86_64-unknown-kernel.json MIRI_NO_STD=1 run_tests_minimal no_std
164163
;;
165164
i686-pc-windows-msvc)
166165
# Host

src/tools/miri/tests/avr.json

-25
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"llvm-target": "x86_64-unknown-none",
3+
"target-endian": "little",
4+
"target-pointer-width": "64",
5+
"target-c-int-width": "32",
6+
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
7+
"arch": "x86_64",
8+
"os": "none",
9+
"env": "",
10+
"vendor": "unknown",
11+
"linker": "rust-lld",
12+
"linker-flavor": "gnu-lld",
13+
"features": "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2,+soft-float",
14+
"dynamic-linking": false,
15+
"executables": true,
16+
"relocation-model": "static",
17+
"code-model": "kernel",
18+
"disable-redzone": true,
19+
"frame-pointer": "always",
20+
"exe-suffix": "",
21+
"has-rpath": false,
22+
"no-default-libraries": true,
23+
"position-independent-executables": false
24+
}

0 commit comments

Comments
 (0)