Improve SSE4.2 errors on MacOS

Give some more hints about Rosetta-related errors
when failing on MacOS.

Bug: https://github.com/google/perfetto/issues/294
Change-Id: If4ac88f63382eb19702865615cc6955e2146f30c
diff --git a/src/base/utils.cc b/src/base/utils.cc
index 0b08ece..a614fd7 100644
--- a/src/base/utils.cc
+++ b/src/base/utils.cc
@@ -102,7 +102,11 @@
   if (!have_sse4_2 || !have_popcnt || !have_avx) {
     fprintf(
         stderr,
-        "This executable requires a cpu that supports SSE4.2 and AVX2.\n"
+        "This executable requires a X86_64 cpu that supports SSE4.2 and AVX.\n"
+#if PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)
+        "On MacOS, this might be caused by running x86_64 binaries on arm64.\n"
+        "See https://github.com/google/perfetto/issues/294 for more.\n"
+#endif
         "Rebuild with enable_perfetto_x64_cpu_opt=false (ebx=%x, ecx=%x).\n",
         ebx, ecx);
     _exit(126);