ncurses: add determine_variants for abi version (#22647)
This commit is contained in:
parent
d805be02ec
commit
5b77046e20
1 changed files with 9 additions and 0 deletions
|
@ -69,6 +69,15 @@ def determine_variants(cls, exes, version):
|
||||||
break
|
break
|
||||||
if usingSymlinks:
|
if usingSymlinks:
|
||||||
variants += '+symlinks'
|
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)
|
results.append(variants)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue