Commit 6ed84e4
Fix dpcpp.cmake to recognise icx-cl as the ICX compiler on Windows
The SYCL_ONEAPI_ICX detection checked for 'icx' and 'icpx' but not for
'icx-cl', the MSVC-compatibility-mode variant of the ICX compiler used
when building with Ninja/CMake on Windows. Without this match the
cmake logic fell through to the Linux/Clang flag path, injecting flags
such as -std=c++17, -fvisibility=hidden and -ffp-model=precise that
icx-cl rejects with -Werror,-Wunknown-argument errors.
Add 'icx-cl' to the SYCL_ONEAPI_ICX name check so the correct Windows
ICX flag set is selected.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 56af6a2 commit 6ed84e4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments