Skip to content

Commit

Permalink
Apple Silicon displayedin About (#3188)
Browse files Browse the repository at this point in the history
ARCH should pick it up but until I can test, hardwire override
the CMake
  • Loading branch information
baconpaul authored Nov 21, 2020
1 parent 9fc710a commit 39a5f70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/gui/CAboutBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ CAboutBox::CAboutBox(const CRect& size,
std::string flavor = "Standalone";
#endif

std::string arch = Surge::Build::BuildArch;
#if MAC
std::string platform = "macOS";
#if ARM_NEON
arch = "Apple Silicon";
#endif
#elif WINDOWS
std::string platform = "Windows";
#elif LINUX
Expand All @@ -149,7 +153,7 @@ CAboutBox::CAboutBox(const CRect& size,
#endif

std::string bitness = (sizeof(size_t) == 4 ? std::string("32") : std::string("64")) + "-bit";
std::string system = (std::string)Surge::Build::BuildArch + " CPU, " + platform + " " + flavor + ", " + bitness;;
std::string system = arch + " CPU, " + platform + " " + flavor + ", " + bitness;;

infoStringForClipboard = "Surge Synthesizer\n";
addTwoColumnLabel("Version:", version, false, "", 76, 500, true);
Expand Down

0 comments on commit 39a5f70

Please sign in to comment.