summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mach/ci/build_fail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/mach/ci/build_fail.sh')
-rwxr-xr-xthird_party/rust/mach/ci/build_fail.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/rust/mach/ci/build_fail.sh b/third_party/rust/mach/ci/build_fail.sh
new file mode 100755
index 0000000000..ef35965468
--- /dev/null
+++ b/third_party/rust/mach/ci/build_fail.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+set -ex
+
+: "${TARGET?The TARGET environment variable must be set.}"
+
+! cargo build --target "${TARGET}"