mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-08 19:06:39 +00:00
[tests] Update fma3 check to work with Py3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f72bc79226
commit
51a0b77cbf
@ -297,7 +297,8 @@ if 'darwin' == sys.platform:
|
||||
stdout = subprocess.PIPE)
|
||||
except OSError:
|
||||
print("Could not exec sysctl")
|
||||
if -1 != sysctl_cmd.stdout.read().find("hw.optional.fma: 1"):
|
||||
result = sysctl_cmd.stdout.read().decode('ascii')
|
||||
if -1 != result.find("hw.optional.fma: 1"):
|
||||
config.available_features.add('fma3')
|
||||
sysctl_cmd.wait()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user