ncurses: add determine_variants for abi version (#22647)

This commit is contained in:
lorddavidiii 2021-04-08 14:10:36 +02:00 committed by GitHub
parent d805be02ec
commit 5b77046e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,15 @@ def determine_variants(cls, exes, version):
break
if usingSymlinks:
variants += '+symlinks'
abiVersion = 'none'
output = Executable(exe)('--abi-version', output=str, error=str)
if '6' in output:
abiVersion = '6'
elif '5' in output:
abiVersion = '5'
variants += ' abi=' + abiVersion
results.append(variants)
return results