You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the same flags as Clang if the compiler id is IntelLLVM.
IntelLLVM warns if a double constant is assigned to a float.
```
[build] .../googletest/googletest/include/gtest/gtest-printers.h:516:17: warning: implicit conversion between floating point types of different sizes [-Wimplicit-float-size-conversion]
[build] mulfor6 = 1e1;
```
IntelLLVM uses fp-model=fast by default, breaking IsNan and IsInf tests.
Use -ffp-model=precise to fix this.
IntelLLVM does not support -Wchar-subscripts
Fixesgoogle#4255
Describe the issue
IntelLLVM (icx/icpx) is a clang-like compiler.
It has a few differences from the normal clang compiler,
and this requires passing in additional flags during build.
e.g. for floating point handling
Steps to reproduce the problem
Install the oneapi-basekit,
https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2023-1/apt.html#GUID-497ED29B-51A5-4402-AEA1-EA9E86DD3226
and run this.
What version of GoogleTest are you using?
What operating system and version are you using?
What compiler and version are you using?
What build system are you using?
Additional context
No response
The text was updated successfully, but these errors were encountered: