aboutsummaryrefslogtreecommitdiff
path: root/.cargo/config
blob: a6f49041d4a72e296efa8782ee0c09dbb657b93c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[build]
target = "riscv64imac-unknown-none-elf"

[target.riscv64imac-unknown-none-elf]
# Effectively build for rv64i.
rustflags = ["-C", "target-feature=-m,-a,-c"]
runner    = "qemu-riscv64"
#runner    = "qemu-riscv64 -d in_asm"
#runner    = "qemu-riscv64 -strace"

[unstable]
# Shipped core library is build with `imac` extensions, since we disable `mac`
# we have to rebuild `core`.
# Unstable features are only enabled with a nightly toolchain:
# > cargo +nightly build
#
# Validate the resulting binary by checking the instructions & encodings:
# > llvm-objdump -C -d <bin>
build-std = ["core"]