From 5e6d1600203f9ce48987736a4bbcd5904bd3ca7c Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Sun, 13 Mar 2022 10:57:59 +0100 Subject: [PATCH] Do not include symbols defined in driver/others/parameter.c in DYNAMIC_ARCH driver/others/parameter.c does not get build during DYNAMIC_ARCH, thus, do not declare its symbols. This will make the build fail early and in an obvious way if functions are trying to use these symbols. Signed-off-by: Egbert Eich --- common_macro.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common_macro.h b/common_macro.h index 9826f18..d2fa822 100644 --- a/common_macro.h +++ b/common_macro.h @@ -2610,8 +2610,9 @@ #endif #ifndef ASSEMBLER -#if defined(ARCH_X86) || defined(ARCH_X86_64) || defined(ARCH_IA64) || defined(ARCH_MIPS64) || defined(ARCH_ARM64)\ -|| defined(ARCH_LOONGARCH64) || defined(ARCH_E2K) +#if !defined(DYNAMIC_ARCH) \ + && (defined(ARCH_X86) || defined(ARCH_X86_64) || defined(ARCH_IA64) || defined(ARCH_MIPS64) || defined(ARCH_ARM64) \ + || defined(ARCH_LOONGARCH64) || defined(ARCH_E2K)) extern BLASLONG gemm_offset_a; extern BLASLONG gemm_offset_b; extern BLASLONG sbgemm_p; -- 2.7.4