Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 3, 2024
1 parent 7e06cc8 commit 67e2f87
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
44 changes: 44 additions & 0 deletions sparc-unknown-linux-gnu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"arch": "sparc",
"cpu": "v9",
"crt-objects-fallback": "false",
"crt-static-respected": true,
"data-layout": "E-m:e-p:32:32-i64:64-i128:128-f128:64-n32-S64",
"dynamic-linking": true,
"env": "gnu",
"has-rpath": true,
"has-thread-local": true,
"late-link-args": {
"gnu-cc": [
"-mcpu=v9",
"-m32",
"-mv8plus"
],
"gnu-lld-cc": [
"-mcpu=v9",
"-m32"
]
},
"linker-flavor": "gnu-cc",
"llvm-target": "sparc-unknown-linux-gnu",
"max-atomic-width": 32,
"metadata": {
"description": "32-bit SPARC Linux",
"host_tools": false,
"std": true,
"tier": 3
},
"os": "linux",
"position-independent-executables": true,
"relro-level": "full",
"supported-split-debuginfo": [
"packed",
"unpacked",
"off"
],
"target-endian": "big",
"target-family": [
"unix"
],
"target-pointer-width": "32"
}
9 changes: 5 additions & 4 deletions tools/ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target="${target%@*}"
target_lower="${target//-/_}"
target_lower="${target_lower//./_}"
target_upper=$(tr '[:lower:]' '[:upper:]' <<<"${target_lower}")
target_spec="$(pwd)/${target}.json"
wd="$2"
base_rustflags="${RUSTFLAGS:-}"
case "${target}" in
Expand Down Expand Up @@ -57,16 +58,16 @@ skip_run() {
}
cargo_run() {
if skip_run; then
cargo ${BUILD_STD:-} build -v --target "${target}" ${cargo_options[@]+"${cargo_options[@]}"} "$@"
cargo ${BUILD_STD:-} build -v --target "${target_spec}" ${cargo_options[@]+"${cargo_options[@]}"} "$@"
else
cargo ${BUILD_STD:-} run -v --target "${target}" ${cargo_options[@]+"${cargo_options[@]}"} "$@"
cargo ${BUILD_STD:-} run -v --target "${target_spec}" ${cargo_options[@]+"${cargo_options[@]}"} "$@"
fi
}
cargo_test() {
if skip_run; then
cargo ${BUILD_STD:-} test --no-run -v --target "${target}" ${DOCTEST_XCOMPILE:-} ${cargo_options[@]+"${cargo_options[@]}"} "$@"
cargo ${BUILD_STD:-} test --no-run -v --target "${target_spec}" ${DOCTEST_XCOMPILE:-} ${cargo_options[@]+"${cargo_options[@]}"} "$@"
else
cargo ${BUILD_STD:-} test -v --target "${target}" ${DOCTEST_XCOMPILE:-} ${cargo_options[@]+"${cargo_options[@]}"} "$@"
cargo ${BUILD_STD:-} test -v --target "${target_spec}" ${DOCTEST_XCOMPILE:-} ${cargo_options[@]+"${cargo_options[@]}"} "$@"
fi
}
run_native() {
Expand Down

0 comments on commit 67e2f87

Please sign in to comment.