mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Use /usr/bin/true
This commit is contained in:
parent
96eb5ef156
commit
ddd5503950
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ StringSet Settings::getDefaultExtraPlatforms()
|
||||||
// x86_64 in aarch64 environments or vice versa since they can
|
// x86_64 in aarch64 environments or vice versa since they can
|
||||||
// always exec with their own binary preferences.
|
// always exec with their own binary preferences.
|
||||||
if (std::string{SYSTEM} == "aarch64-darwin") {
|
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");
|
debug("Rosetta detected");
|
||||||
extraPlatforms.insert("x86_64-darwin");
|
extraPlatforms.insert("x86_64-darwin");
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue