Skip to content

Commit 531b76e

Browse files
authored
[DeviceSanitizer] Ensure __USE_SPIR_BUILTIN__ has a value (#16570)
Ensure that `__USE_SPIR_BUILTIN__` is defined to 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__ | ^
1 parent ac1b3b6 commit 531b76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libdevice/include/sanitizer_defs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enum ADDRESS_SPACE : uint32_t {
4444

4545
#else // __SYCL_DEVICE_ONLY__
4646

47-
#define __USE_SPIR_BUILTIN__
47+
#define __USE_SPIR_BUILTIN__ 0
4848

4949
#endif // __SYCL_DEVICE_ONLY__
5050

0 commit comments

Comments
 (0)