mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
0cbb1af83b
commit
7951ffdf2e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user