Skip to content

Commit 236a09d

Browse files
authored
[SYCL] Fix build issue that appeared in self-build using clang-15 (#7811)
1 parent eb33bbc commit 236a09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/detail/defines.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#endif
2222
#endif
2323

24-
#if __has_attribute(sycl_special_class)
24+
#if __has_attribute(sycl_special_class) && (defined __SYCL_DEVICE_ONLY__)
2525
#define __SYCL_SPECIAL_CLASS __attribute__((sycl_special_class))
2626
#else
2727
#define __SYCL_SPECIAL_CLASS

0 commit comments

Comments
 (0)