-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Old CMake with IntelLLVM: Unsupported command line options, multiple warnings #4315
Comments
https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md IntelLLVM is not a supported compiler. We are open to patches from the community for this issue. |
@derekmauro I might be missing something, but: Wouldn't adding a simple check for googletest/googletest/cmake/internal_utils.cmake Lines 99 to 104 in cc36671
EDIT: I'm on a roll when it comes to doing stuff on this project, so I'm gonna give it a try. |
Intel LLVM as Clang Fixes google#4315
Intel LLVM as Clang Fixes google#4315
I've provided a fix for this issue in #4541. Please test this thoroughly (I've tested it using the VM provided in the initial comment. |
Intel LLVM as Clang Fixes google#4315
I'm closing this issue. If you want to use IntelLLVM with CMake, upgrade CMake. |
Describe the issue
IntelLLVM is recognized only by CMake 3.20+: https://cmake.org/cmake/help/latest/release/3.20.html#compilers
When an older CMake is used,
CMAKE_CXX_COMPILER_ID
is set toClang
. This causes-Wchar-subscripts
flag to be added tocxx_strict_flags
, while a bunch of flags used to silence warnings are not added:googletest/googletest/cmake/internal_utils.cmake
Lines 99 to 104 in cc36671
Steps to reproduce the problem
What version of GoogleTest are you using?
cc36671
What operating system and version are you using?
Ubuntu Linux 20.04
What compiler and version are you using?
Intel(R) oneAPI DPC++/C++ Compiler 2023.1.0 (2023.1.0.20230320)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm
Configuration file: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../bin/icpx.cfg
What build system are you using?
cmake version 3.18.0
Additional context
The docker image used for reproducer ships with a newer CMake, but by default, Ubuntu 20.04 provides CMake 3.16.3
The text was updated successfully, but these errors were encountered: