aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-10-14 00:35:33 -0700
committerEelco Dolstra <edolstra@gmail.com>2022-10-14 00:35:33 -0700
commit285277a61af8d7ad49f2155166690601aa1a59a9 (patch)
treec74d604a207e7ade9bbeaaa5c89420ddf675d4d5 /src/libstore/globals.cc
parentddd550395070eaee40e758ab630525f7e1162b85 (diff)
Remove useless debug statements
We haven't parsed the '-v' command line flags yet when this code executes, so we can't actually get debug output here.
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r--src/libstore/globals.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index 903621da0..ff658c428 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -154,13 +154,9 @@ 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.
- if (std::string{SYSTEM} == "aarch64-darwin") {
- 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
- debug("Rosetta not detected");
- }
+ if (std::string{SYSTEM} == "aarch64-darwin" &&
+ runProgram(RunOptions {.program = "arch", .args = {"-arch", "x86_64", "/usr/bin/true"}, .mergeStderrToStdout = true}).first == 0)
+ extraPlatforms.insert("x86_64-darwin");
#endif
return extraPlatforms;