Open krasznaa opened 3 months ago
Unfortunately I don't have any good ideas about this right now. š¦
The issue is that icx-cl.exe
on Windows treats unrecognized command line options as warnings. So the VECMEM_HAVE_SYCL_VISIBILITY_MS_COMPAT
test succeeds.
When settings -DVECMEM_FAIL_ON_WARNINGS=TRUE
, the VECMEM_HAVE_SYCL_VISIBILITY_MS_COMPAT
test fails all of a sudden, as it should. So the build in the end succeeds with both -DVECMEM_FAIL_ON_WARNINGS=TRUE
and -DVECMEM_FAIL_ON_WARNINGS=FALSE
. We "just" get some pesky warnings in one case.
If we're willing to require a newer CMake version as a minimum, it could be possible to make this code behave a bit better. But with the current minimum I can just not find the right incantation of testing the usage of -fvisibility-ms-compat
and -Werror
at the same time with try_compile(...). š¦
So I'll let this one go to sleep for now...
While doing some tests on Windows with the latest version of the code, I ran into the following warnings during the build:
So, #282's setup is not working perfectly with this combination of compilers. (MSVC + oneAPI) The failure is not fatal, but it would be nice to get rid of these warnings... š¤