Skip to content
Snippets Groups Projects
Commit c6c66452 authored by Baoshan Pang's avatar Baoshan Pang
Browse files

use FILTER to select which target(s) to run

parent c60e31dd
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# Checks that libc builds properly for all supported targets on a particular # Checks that libc builds properly for all supported targets on a particular
# Rust version: # Rust version:
# The FILTER environment variable can be used to select which target(s) to build.
# For example: set FILTER to vxworks to select the targets that has vxworks in name
set -ex set -ex
...@@ -176,7 +178,9 @@ case "${OS}" in ...@@ -176,7 +178,9 @@ case "${OS}" in
esac esac
for TARGET in $TARGETS; do for TARGET in $TARGETS; do
test_target build "$TARGET" if echo "$TARGET"|grep -q "$FILTER";then
test_target build "$TARGET"
fi
done done
# FIXME: https://github.com/rust-lang/rust/issues/58564 # FIXME: https://github.com/rust-lang/rust/issues/58564
...@@ -237,7 +241,9 @@ powerpc64-wrs-vxworks \ ...@@ -237,7 +241,9 @@ powerpc64-wrs-vxworks \
if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
for TARGET in $RUST_LINUX_NO_CORE_TARGETS; do for TARGET in $RUST_LINUX_NO_CORE_TARGETS; do
test_target xbuild "$TARGET" 1 if echo "$TARGET"|grep -q "$FILTER";then
test_target xbuild "$TARGET" 1
fi
done done
# Nintendo switch # Nintendo switch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment