Bug 1658375 - define platform macros for arm64 macOS in the profiler; r=mstange

This change doesn't resolve some of the issues in profiler code that have
x86-64-isms in them, but this is at least a start.

Differential Revision: https://phabricator.services.mozilla.com/D86595
This commit is contained in:
Nathan Froyd 2020-08-10 22:02:27 +00:00
parent 0cbb1af83b
commit 7951ffdf2e
2 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#undef GP_PLAT_arm_linux
#undef GP_PLAT_mips64_linux
#undef GP_PLAT_amd64_darwin
#undef GP_PLAT_arm64_darwin
#undef GP_PLAT_x86_windows
#undef GP_PLAT_amd64_windows
#undef GP_PLAT_arm64_windows
@ -85,6 +86,11 @@
# define GP_ARCH_mips64 1
# define GP_OS_linux 1
#elif defined(__APPLE__) && defined(__aarch64__)
# define GP_PLAT_arm64_darwin 1
# define GP_ARCH_arm64 1
# define GP_OS_darwin 1
#elif defined(__APPLE__) && defined(__x86_64__)
# define GP_PLAT_amd64_darwin 1
# define GP_ARCH_amd64 1

View File

@ -22,6 +22,7 @@
#undef GP_PLAT_arm_linux
#undef GP_PLAT_mips64_linux
#undef GP_PLAT_amd64_darwin
#undef GP_PLAT_arm64_darwin
#undef GP_PLAT_x86_windows
#undef GP_PLAT_amd64_windows
#undef GP_PLAT_arm64_windows
@ -85,6 +86,11 @@
# define GP_ARCH_mips64 1
# define GP_OS_linux 1
#elif defined(__APPLE__) && defined(__aarch64__)
# define GP_PLAT_arm64_darwin 1
# define GP_ARCH_arm64 1
# define GP_OS_darwin 1
#elif defined(__APPLE__) && defined(__x86_64__)
# define GP_PLAT_amd64_darwin 1
# define GP_ARCH_amd64 1