-
Notifications
You must be signed in to change notification settings - Fork 557
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
Working with CMake (failed to store ... no such file or directory) #189
Comments
btw, the offending compilation step outputted by sccache is :
|
I'm not sure why I never commented on this issue, sorry! I wonder if this is due to the output directory not existing when the compile is executed? I would expect gcc to error about that, though. It's possible this is just a bug in sccache's handling of object file names. Does this reproduce with the latest sccache? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am attempting to build a Rust project while using sccache only as a replacement for ccache for CC and CXX.
The project I am attempting to build is the Rust
ssh2
crate.My first approach was to set CC="sccache gcc" and CXX="sccache g++" .
However, cmake split the CC string into 'sccache' as the compiler and 'gcc' as a compiler flag. (Also CC="'sccache gcc'" didn't work as well)
So I created bash files :
sccache-cc
and set CC="sccache-cc"
this came from this tip for making ccache work with CMake here
This got much farther, however it appears that CMake expected gcc to do something different with the .o file than was expected by sccache, because the result is :
Has anyone encountered an error like this? Better question : Has anyone convinced ccache to work nicely with CMake?
Thanks.
The text was updated successfully, but these errors were encountered: