Skip to content

Commit

Permalink
fix sysroot-crates-are-unstable for cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Mar 30, 2023
1 parent 26e1ce7 commit 8e214cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/run-make/sysroot-crates-are-unstable/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8e214cb

Please sign in to comment.