Fix aliases on ARM64.

The semicolon is the comment character in ARM64 assembly. Just put the
alias symbol definition on another line.
This commit is contained in:
Chip Davis 2020-09-10 20:20:10 -05:00
parent 19ebc7778b
commit 2c40e39699

View File

@ -76,7 +76,7 @@ extern "C" {
#define MVK_PUBLIC_SYMBOL __attribute__((visibility("default")))
/** Directive to make a public alias of another symbol. */
#define MVK_PUBLIC_ALIAS(a, t) asm(".globl _" #a "; _" #a " = _" #t "\n")
#define MVK_PUBLIC_ALIAS(ALIAS, TARGET) asm(".globl _" #ALIAS "\n\t_" #ALIAS " = _" #TARGET)
#ifdef __cplusplus