summaryrefslogtreecommitdiff
path: root/testsuite/driver/cpu_features.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-04-02 15:04:53 -0400
committerBen Gamari <ben@smart-cactus.org>2021-04-02 15:04:53 -0400
commit78d24d55422a1545ada0a0050aaf43365108781b (patch)
treee8c5493edf120d831ceb1db5e0977193c1ac6f73 /testsuite/driver/cpu_features.py
parentce706faeef3964116c6e1dd0e6ae2f2e77fde57d (diff)
downloadhaskell-wip/T19640.tar.gz
Revert "[ci/arm/darwin/testsuite] Forwards ports from GHC-8.10"wip/T19640
This reverts commit 0cbdba2768d84a0f6832ae5cf9ea1e98efd739da.
Diffstat (limited to 'testsuite/driver/cpu_features.py')
-rw-r--r--testsuite/driver/cpu_features.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/driver/cpu_features.py b/testsuite/driver/cpu_features.py
index 6e32d3b445..7b4340b61c 100644
--- a/testsuite/driver/cpu_features.py
+++ b/testsuite/driver/cpu_features.py
@@ -29,9 +29,7 @@ def get_cpu_features():
return flags
elif config.os == 'darwin':
- # we hardcode the sysctl path, otherwise we rely on /usr/sbin being in
- # path.
- out = subprocess.check_output(['/usr/sbin/sysctl', 'hw']).decode('UTF-8')
+ out = subprocess.check_output(['sysctl', 'hw']).decode('UTF-8')
features = set()
def check_feature(darwin_name, our_name=None):
if re.search(r'hw\.optional.%s:\s*1' % darwin_name, out) is not None:
@@ -68,3 +66,4 @@ if __name__ == '__main__':
import sys
config.os = sys.argv[1]
print(get_cpu_features())
+