From 7c18d815749fcd12b16ecfa51a842526b198ce08 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 9 Jan 2025 02:30:41 -0800 Subject: [PATCH] Ensure __USE_SPIR_BUILTIN__ has a value Ensure that `__USE_SPIR_BUILTIN__` is defined to the the value `0` when `defined(__SPIR__) || defined(__SPIRV__)` is false to fix build errors like this: libdevice/include/sanitizer_defs.hpp:51:25: error: expected value in expression 51 | #if __USE_SPIR_BUILTIN__ | ^ --- libdevice/include/sanitizer_defs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdevice/include/sanitizer_defs.hpp b/libdevice/include/sanitizer_defs.hpp index 831ebaaf77714..dd5d0d94604be 100644 --- a/libdevice/include/sanitizer_defs.hpp +++ b/libdevice/include/sanitizer_defs.hpp @@ -44,7 +44,7 @@ enum ADDRESS_SPACE : uint32_t { #else // __SYCL_DEVICE_ONLY__ -#define __USE_SPIR_BUILTIN__ +#define __USE_SPIR_BUILTIN__ 0 #endif // __SYCL_DEVICE_ONLY__