Skip to content

Commit ff942e9

Browse files
author
Alexander Batashev
authored
[SYCL] Fix post-commit build failure (#3578)
1 parent 34a460d commit ff942e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/include/CL/sycl/detail/kernel_desc.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ template <class Name> struct SpecConstantInfo {
5959
#if __cplusplus >= 201703L
6060
// Translates SYCL 2020 specialization constant type to its name.
6161
template <auto &SpecName> const char *get_spec_constant_symbolic_ID() {
62+
#ifdef SYCL_LANGUAGE_VERSION
6263
return __builtin_unique_stable_name(
6364
specialization_id_name_generator<SpecName>);
65+
#else
66+
return "";
67+
#endif
6468
}
6569
#endif
6670

0 commit comments

Comments
 (0)