fix sysroot-crates-are-unstable
for cross-compilation
This commit is contained in:
parent
26e1ce7394
commit
8e214cbc06
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue