aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-10-14 00:34:31 -0700
committerEelco Dolstra <edolstra@gmail.com>2022-10-14 00:34:31 -0700
commitddd550395070eaee40e758ab630525f7e1162b85 (patch)
treec626f24e8dc5410f7560739a52c5014b1322f234 /src/libstore
parent96eb5ef156641ffc4c5ff01befe73a3419b346bc (diff)
Use /usr/bin/true
Diffstat (limited to 'src/libstore')
-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 c3d5f9b8c..903621da0 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -155,7 +155,7 @@ StringSet Settings::getDefaultExtraPlatforms()
// x86_64 in aarch64 environments or vice versa since they can
// always exec with their own binary preferences.
if (std::string{SYSTEM} == "aarch64-darwin") {
- if (runProgram(RunOptions {.program = "arch", .args = {"-arch", "x86_64", "/bin/pwd"}, .mergeStderrToStdout = true}).first == 0) {
+ if (runProgram(RunOptions {.program = "arch", .args = {"-arch", "x86_64", "/usr/bin/true"}, .mergeStderrToStdout = true}).first == 0) {
debug("Rosetta detected");
extraPlatforms.insert("x86_64-darwin");
} else