#endif /* DISABLE_LOGGING */
#if defined(__i386__) || defined(__x86_64__)
+#ifndef TARGET_ARM64
#define emit_debug_info TRUE
#else
#define emit_debug_info FALSE
#endif
+#else
+#define emit_debug_info FALSE
+#endif
/*This enables us to use the right tooling when building the cross compiler for iOS.*/
#if defined (__APPLE__) && defined (TARGET_ARM) && (defined(__i386__) || defined(__x86_64__))
# else
# define AS_CMD "as -gstabs"
# endif
+#elif defined (TARGET_ARM64)
+# if defined (__APPLE__)
+# define AS_CMD "clang -c -arch arm64 -g -x assembler"
+# else
+# define AS_CMD "as -gstabs"
+# endif
#elif defined(__mips__) && (_MIPS_SIM == _ABIO32)
#define AS_CMD "as -mips32"
#elif defined(__ppc64__)
cmd = g_strdup_printf (ARCH_PREFIX DIS_CMD " %s %s", objdump_args, o_file);
unused = system (cmd);
g_free (cmd);
-
+
#ifndef HOST_WIN32
unlink (o_file);
unlink (as_file);