-
Notifications
You must be signed in to change notification settings - Fork 9
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
Windows: unable to find launch-cxx #5
Comments
Hey, thanks for the issue! Unfortunately I don't have access to a windows system atm, so I can't reproduce the bug locally. Does it still occur in version Also, it might be a good idea to adapt Ccache.cmake for better Windows support, e.g. by adding PowerShell scripts or changing the CMake logic to set the |
1.2.2 also fails. Ninja fails with this error:
|
Ok, thanks for testing! Yeah indeed seems like we need a separate conditional branch if we want to support windows targets. Unfortunately, I couldn't find too much infos on using CMake to activate Ccache on Windows, so if you have any leads or even a PR fixing it, it would be great! |
@cristianadam may be able to offer some insights. I believe he was working on Windows support for ccache at one point. |
I have my own fork of ccache which adds support for Visual C++. This works only in release mode. I haven't managed to finish pushing it upstream ccache/ccache#506 At https://github.com/cristianadam/HelloWorld I have a project using the binary artifacts from my ccache fork to build for Linux, Windows MinGW / MSVC, macOS. Qt Creator is a bigger project that uses this https://github.com/qt-creator/qt-creator/actions. |
The error does not come from ccache. It comes from the fact that you are using a wrapper shell script to invoke ccache on a windows platform. Here is what I do to work around this:
|
This worked on my end. Thank you! |
MSVC:
MinGW:
CMakeLists.txt:
The text was updated successfully, but these errors were encountered: