about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <github@jyn.dev>2023-03-30 08:44:46 -0500
committerJoshua Nelson <github@jyn.dev>2023-03-30 08:44:46 -0500
commit8e214cbc0640c0a57db0f277d600da248135111c (patch)
treefc7a90ca974461c646d753b57462f0fac0d40cc4
parent26e1ce739400df9e989fa64c0138aaf13ced8c60 (diff)
fix `sysroot-crates-are-unstable` for cross-compilation
-rw-r--r--tests/run-make/sysroot-crates-are-unstable/test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-make/sysroot-crates-are-unstable/test.py b/tests/run-make/sysroot-crates-are-unstable/test.py
index cb77eb34fef..cab4faa4e64 100644
--- a/tests/run-make/sysroot-crates-are-unstable/test.py
+++ b/tests/run-make/sysroot-crates-are-unstable/test.py
@@ -43,6 +43,7 @@ def check_lib(lib):
         return True
     print('verifying if {} is an unstable crate'.format(lib['name']))
     stdout, stderr = exec_command([os.environ['RUSTC'], '-', '--crate-type', 'rlib',
+                                   '--target', os.environ['TARGET'],
                                    '--extern', '{}={}'.format(lib['name'], lib['path'])],
                                   to_input=('extern crate {};'.format(lib['name'])).encode('utf-8'))
     if not 'use of unstable library feature' in '{}{}'.format(stdout, stderr):