Skip to content

Commit 5e6d160

Browse files
committed
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 <eich@suse.com>
1 parent 8002048 commit 5e6d160

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common_macro.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,8 +2610,9 @@
26102610
#endif
26112611

26122612
#ifndef ASSEMBLER
2613-
#if defined(ARCH_X86) || defined(ARCH_X86_64) || defined(ARCH_IA64) || defined(ARCH_MIPS64) || defined(ARCH_ARM64)\
2614-
|| defined(ARCH_LOONGARCH64) || defined(ARCH_E2K)
2613+
#if !defined(DYNAMIC_ARCH) \
2614+
&& (defined(ARCH_X86) || defined(ARCH_X86_64) || defined(ARCH_IA64) || defined(ARCH_MIPS64) || defined(ARCH_ARM64) \
2615+
|| defined(ARCH_LOONGARCH64) || defined(ARCH_E2K))
26152616
extern BLASLONG gemm_offset_a;
26162617
extern BLASLONG gemm_offset_b;
26172618
extern BLASLONG sbgemm_p;

0 commit comments

Comments
 (0)