-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #1152
Comments
Hello @jsmolka,
Looking forward to your reply. |
I changed the part to
but the errors still persists (action run). |
@jsmolka |
Hi @jsmolka , looks like the latest release of vcpkg has changes that broken your build. I've tried to downgrade vcpkg to the previous release and build was successful: run action As a workaround you can reinstall vcpkg adding next step:
The detailed build log contains message about error:
The problem is clang linker |
Thanks for investigating the issue. I will open a new one in vcpkg and see it if can be resolved there! |
Describe the bug
No CMAKE_CXX_COMPILER could be found.
when trying to build with clang-cl with cmake on Windows.Area for Triage:
C/C++
Question, Bug, or Feature?:
Bug
Virtual environments affected
Expected behavior
I am contributing to a C++ project where we use GitHub actions for automated builds. 19 days ago the Windows builds passed without any problem (link to action). Now, the same commit causes build errors on Windows (link to action).
These are the problematic commands in the cmake file:
Which gives the following output:
Somehow the compiler is not recognized in the GitHub actions environment (on my machine everything is working). Passing the clang-cl binary via the
CMAKE_CXX_COMPILER
flag mitigates the problem to some degree but causes other build errors.Actual behavior
The build errors started happening around 3 days ago (see the commit history). Nothing which could cause the error has been changed in the cmake file.
The text was updated successfully, but these errors were encountered: