Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
time-killer-games authored Feb 15, 2024
1 parent 20d9c19 commit 568c0af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,11 @@ std::string os_architecture() {
#if (defined(__APPLE__) && defined(__MACH__))
/* macOS requires "arch -arch arm64" to
force running without rosetta if x86 */
architecture = read_output("arch -arch arm64 uname -m");
if (cpu_processor().substr(0, 5) == "Apple") {
architecture = read_output("arch -arch arm64 uname -m 2> /dev/null");
} else {
architecture = read_output("uname -m");
}
#else
architecture = read_output("uname -m");
#endif
Expand Down

0 comments on commit 568c0af

Please sign in to comment.