Skip to content

Commit 8e214cb

Browse files
committed
fix sysroot-crates-are-unstable for cross-compilation
1 parent 26e1ce7 commit 8e214cb

File tree

1 file changed

+1
-0
lines changed
  • tests/run-make/sysroot-crates-are-unstable

1 file changed

+1
-0
lines changed

tests/run-make/sysroot-crates-are-unstable/test.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def check_lib(lib):
4343
return True
4444
print('verifying if {} is an unstable crate'.format(lib['name']))
4545
stdout, stderr = exec_command([os.environ['RUSTC'], '-', '--crate-type', 'rlib',
46+
'--target', os.environ['TARGET'],
4647
'--extern', '{}={}'.format(lib['name'], lib['path'])],
4748
to_input=('extern crate {};'.format(lib['name'])).encode('utf-8'))
4849
if not 'use of unstable library feature' in '{}{}'.format(stdout, stderr):

0 commit comments

Comments
 (0)