mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[tests] Update fma3 check to work with Py3.
llvm-svn: 188950
This commit is contained in:
parent
e926420419
commit
4f51896690
@ -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