File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
33# Checks that libc builds properly for all supported targets on a particular
44# Rust version:
5+ # The FILTER environment variable can be used to select which target(s) to build.
6+ # For example: set FILTER to vxworks to select the targets that has vxworks in name
57
68set -ex
79
@@ -176,7 +178,9 @@ case "${OS}" in
176178esac
177179
178180for TARGET in $TARGETS ; do
179- test_target build " $TARGET "
181+ if echo " $TARGET " | grep -q " $FILTER " ; then
182+ test_target build " $TARGET "
183+ fi
180184done
181185
182186# FIXME: https://github.com/rust-lang/rust/issues/58564
@@ -237,7 +241,9 @@ powerpc64-wrs-vxworks \
237241
238242if [ " ${RUST} " = " nightly" ] && [ " ${OS} " = " linux" ]; then
239243 for TARGET in $RUST_LINUX_NO_CORE_TARGETS ; do
240- test_target xbuild " $TARGET " 1
244+ if echo " $TARGET " | grep -q " $FILTER " ; then
245+ test_target xbuild " $TARGET " 1
246+ fi
241247 done
242248
243249 # Nintendo switch
You can’t perform that action at this time.
0 commit comments