Skip to content

Commit 88c882d

Browse files
authored
Merge pull request #62 from eduardosm/script
Fixes in `run-stdarch-test.sh`
2 parents 13b4a44 + 5cbdc0a commit 88c882d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run-stdarch-test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
## Run stdarch test suite with Miri.
55
## Assumes Miri to be installed.
66
## Usage:
7-
## ./run-test.sh TARGET
7+
## ./run-stdarch-test.sh TARGET
88
## Environment variables:
99
## MIRI_LIB_SRC: The path to the Rust `library` directory (optional).
1010
## RUSTFLAGS: rustc flags (optional)
@@ -19,7 +19,7 @@ export TARGET="$1"
1919

2020
case "$TARGET" in
2121
i586-*|i686-*|x86_64-*)
22-
RUSTFLAGS="-C target-feature=+ssse3,+avx512vl,+vaes"
22+
TARGET_RUSTFLAGS="-C target-feature=+ssse3,+avx512vl,+vaes"
2323
TEST_ARGS=(
2424
core_arch::x86::{sse,sse2,sse3,ssse3,aes,vaes}::
2525
core_arch::x86_64::{sse,sse2}::
@@ -33,7 +33,7 @@ i586-*|i686-*|x86_64-*)
3333
exit 1
3434
esac
3535

36-
export RUSTFLAGS="${RUSTFLAGS:-} -Ainternal_features"
36+
export RUSTFLAGS="${RUSTFLAGS:-} $TARGET_RUSTFLAGS -Ainternal_features"
3737

3838
# Make sure all tested target features are enabled
3939
export STDARCH_TEST_EVERYTHING=1

0 commit comments

Comments
 (0)