From 2e1261a79c291d85c613d2d5191a60b843fee0b5 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Fri, 7 Jun 2024 08:39:03 -0700 Subject: [PATCH] [SYCL][libdevice] Don't force linkage to weak Signed-off-by: Sarnie, Nick --- libdevice/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdevice/device.h b/libdevice/device.h index 360af54f9b4c4..e2f0da6e3c082 100644 --- a/libdevice/device.h +++ b/libdevice/device.h @@ -17,9 +17,9 @@ #if defined(__SPIR__) || defined(__SPIRV__) || defined(__NVPTX__) #ifdef __SYCL_DEVICE_ONLY__ -#define DEVICE_EXTERNAL SYCL_EXTERNAL __attribute__((weak)) +#define DEVICE_EXTERNAL SYCL_EXTERNAL #else // __SYCL_DEVICE_ONLY__ -#define DEVICE_EXTERNAL __attribute__((weak)) +#define DEVICE_EXTERNAL #endif // __SYCL_DEVICE_ONLY__ #define DEVICE_EXTERN_C DEVICE_EXTERNAL EXTERN_C