-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
clang-cl compiler not found on Windows #12292
Comments
The triplet |
This would be a great addition but I don't think it's required for this issue. clang-cl tries to be a drop-in replacement (ABI, arguments, ...) so compiling the libraries with MSVC is no problem. But for the application itself I would like to have the possibility to choose a specific compiler (due to some MSVC template limitations) and vcpkg shouldn't interfere with that. |
|
in triplet file:
don't forget to add the path for clang-cl to PATH in the vcpkg environment or use the fullpath. |
@voskrese my version should be equal to your first one (cmake selects Visual Studio 16 2019 as default generator if none is supplied) and the second version fails with the following error logs. CMakeOutput.log I success generating the solution with @Neumann-A where would I change that? Also this seems rather unnecessary. The previous version just perfectly fine without manually altering triples. |
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/Llvm/bin/clang-cl.exe" --help flag -m32 == x86, -m64 == x64 or cmake only cmake -T"ClangCL,host=x64" == x64 |
Even if I manage to generate a solution for clang-cl I still end up with the disabled exceptions error |
I believe I've identified the issue and proposed a fix in #12319. |
@ras0219-msft Yes, this fixes the issue. |
Describe the bug
No CMAKE_CXX_COMPILER could be found.
when trying to build with clang-cl with cmake on Windows. This just happens with the latest vcpkg version, previous ones worked.Environment
To Reproduce
Full build instructions in the readme.
Expected behavior
The previous vcpkg version managed to compile.
Failure logs
Logs are attached (some areas in German, I can translate if necessary).
CMakeError.log
CMakeOutput.log
Additional context
I first noticed this issue in a GitHub Actions workflow and therefore created an issue in the actions repo. The answer is worth a read and gives a possible explanation.
The text was updated successfully, but these errors were encountered: