Skip to content

Commit 9ca7cea

Browse files
authored
[SYCL][XPTI] Fix incorrect ifdef breaking gcc build (#5042)
This was introduced in #5023, and broke the build with recent gcc (11.1), as gcc doesn't implement `__builtin_COLUMN` (according to LanguageExtensions.rst). The `ifdef` was simply checking for the wrong one, the build works fine with this patch.
1 parent 9c2fd00 commit 9ca7cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/detail/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace detail {
4343
#define __CODELOC_LINE 0
4444
#endif
4545

46-
#if _MSC_VER > 1929 || __has_builtin(__builtin_LINE)
46+
#if _MSC_VER > 1929 || __has_builtin(__builtin_COLUMN)
4747
#define __CODELOC_COLUMN __builtin_COLUMN()
4848
#else
4949
#define __CODELOC_COLUMN 0

0 commit comments

Comments
 (0)