From 2c40e396994525dfc179ad08e39c5d4da4112847 Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Thu, 10 Sep 2020 20:20:10 -0500 Subject: [PATCH] Fix aliases on ARM64. The semicolon is the comment character in ARM64 assembly. Just put the alias symbol definition on another line. --- Common/MVKCommonEnvironment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/MVKCommonEnvironment.h b/Common/MVKCommonEnvironment.h index 99e5b881..d1531261 100644 --- a/Common/MVKCommonEnvironment.h +++ b/Common/MVKCommonEnvironment.h @@ -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