Commit abc25d2
PR #1915: Fix SYCL Build Compatibility with Intel LLVM Compiler on Windows for abseil
Imported from GitHub PR #1915
Add platform-specific thread-local storage definition for Intel's LLVM compiler when building with SYCL. The Intel LLVM compiler (icx) with SYCL enabled requires GCC-style thread-local storage (__thread) rather than Windows-specific __declspec(thread) when compiling for SYCL device code.
This resolves the build error: "thread-local storage is not supported for the current target" when building with Intel oneAPI env on Windows systems.
Merge 2596bc8 into e5266cd
Merging this change closes #1915
COPYBARA_INTEGRATE_REVIEW=#1915 from ContradNamiseb:patch-1 2596bc8
PiperOrigin-RevId: 792213053
Change-Id: Ib53808f0c604749e00ae3da4c9070ab21e19c8d41 parent fde63b7 commit abc25d2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| |||
0 commit comments