[builtins] Use __APPLE__ instead of __MACH__ in check
authorPetr Hosek <phosek@chromium.org>
Mon, 29 Apr 2019 08:38:43 +0000 (08:38 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 29 Apr 2019 08:38:43 +0000 (08:38 +0000)
The latter doesn't seem to be working for all targets. This addresses
the issue introduced in r359413.

llvm-svn: 359423

compiler-rt/lib/builtins/int_lib.h

index 3e88be7..3092f68 100644 (file)
@@ -51,7 +51,7 @@
 #if defined(__ELF__) || defined(__MINGW32__) || defined(__wasm__)
 #define COMPILER_RT_ALIAS(name, aliasname) \
   COMPILER_RT_ABI __typeof(name) aliasname __attribute__((__alias__(#name)));
-#elif defined(__MACH__)
+#elif defined(__APPLE__)
 #define COMPILER_RT_ALIAS(name, aliasname) \
   __asm__(".globl " SYMBOL_NAME(aliasname)); \
   __asm__(SYMBOL_NAME(aliasname) " = " SYMBOL_NAME(name)); \