Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sycl/include/sycl/detail/defines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
#pragma message( \
"No assumptions will be emitted due to no __builtin_assume available")
#else
#if defined(__cplusplus) && __cplusplus >= 202302L
#warning "No assumptions will be emitted due to no __builtin_assume available"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead could we use #pragma message in all cases? i think it works on msvc/gcc/clang

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thx!

#endif
#endif
#endif
#endif

// FIXME Check for __SYCL_DEVICE_ONLY__ can be removed if implementation of
// __has_attribute is fixed to consider LangOpts when generating attributes in
Expand Down
Loading