Skip to content

Commit

Permalink
fix python when compiler is not LDC
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanEngelen committed Jul 20, 2023
1 parent e566bdb commit 582ebec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plugins/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ if (config.plugins_supported):
text1 = p.stdout.readline() # Ex.: "LDC - the LLVM D compiler (1.33.0-git-716f627)"
text2 = p.stdout.readline() # Ex.: " based on DMD v2.103.1 and LLVM 14.0.0"
text3 = p.stdout.readline() # Ex.: " built with LDC - the LLVM D compiler (1.33.0-beta2)"
host_version = re.compile(' built with LDC.* \(1\.([0-9]+).*\)').match(text3).group(1)
if (int(host_version) >= 18):
host_version = re.compile(' built with LDC.* \(1\.([0-9]+).*\)').match(text3)
if (host_version and int(host_version.group(1)) >= 18):
config.available_features.add('ABI_compatible_with_host_D')


0 comments on commit 582ebec

Please sign in to comment.