File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Checks that libc builds properly for all supported targets on a particular
4
4
# 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
5
7
6
8
set -ex
7
9
@@ -176,7 +178,9 @@ case "${OS}" in
176
178
esac
177
179
178
180
for TARGET in $TARGETS ; do
179
- test_target build " $TARGET "
181
+ if echo " $TARGET " | grep -q " $FILTER " ; then
182
+ test_target build " $TARGET "
183
+ fi
180
184
done
181
185
182
186
# FIXME: https://github.com/rust-lang/rust/issues/58564
@@ -237,7 +241,9 @@ powerpc64-wrs-vxworks \
237
241
238
242
if [ " ${RUST} " = " nightly" ] && [ " ${OS} " = " linux" ]; then
239
243
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
241
247
done
242
248
243
249
# Nintendo switch
You can’t perform that action at this time.
0 commit comments