aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.cc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-12-04 13:26:53 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2020-12-04 13:26:53 -0600
commit3c9b7029ba88e8b831f2054c085ab1fc55c31673 (patch)
tree105a137f0ffb60476ae054ab279776774a574577 /src/libstore/globals.cc
parent4b9acf4e21a834276b7d061942e7b5d3692662b6 (diff)
Use com.apple.oahd.plist for rosetta 2 detection
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r--src/libstore/globals.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 59c49af8a..ad66ef8a8 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -140,7 +140,7 @@ StringSet Settings::getDefaultExtraPlatforms()
// machines. Note that we can’t force processes from executing
// x86_64 in aarch64 environments or vice versa since they can
// always exec with their own binary preferences.
- else if (pathExists("/Library/Apple/usr/libexec/oah")) {
+ else if (pathExists("/Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist")) {
if (std::string{SYSTEM} == "x86_64-darwin")
return StringSet{"aarch64-darwin"};
else if (std::string{SYSTEM} == "aarch64-darwin")