-
Notifications
You must be signed in to change notification settings - Fork 552
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
sccache chooses the -x flag to the compiler based on extension only #748
Comments
|
Should this be closed now that #803 has been closed? |
I'm having a thirdparty code generator that generates a C++ library for me. Unfortunately the files getting generated are named like C-files: So far we've worked around this by setting the file properties using CMake like so: Now when turning on sccache we're not able to compile anymore. sccache is ignoring what CMake sets for us and tries to compile the sources with the C compiler. Is there an easy way around this? It'd be very helpful if there's a way to make sscache use the correct compiler instead of having to touch a lot of legacy code. |
FYI, this isn't a dirty hack but the intended way for CMake projects to state that the language extension of a file should be ignored |
Does this behavior still happen with |
You might also need to wait for CMake 3.19 ( https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4780 ). Before 3.19 when compiling a file with a Note: This |
What is the "larger problem" here? I guess that |
I'll check with latest revision of sccache. Thanks for the fast responses! |
Before setting up a Rust toolchain etc: Is there a prebuilt master available somewhere? Is travis only building releases? |
I'm still having problems compiling based on file extension as of 6628e1f:
Source file compiles successfully if I remove the
EDIT: To duplicate this, checkout the |
I'm seeing this affecting a line like this:
Should
sccache
choose the-x
flag based on the compiler used rather than the extension? If the compiler is ambiguous or unknown to be a specific language, the extension can then be used.Related: #163 (@luser @glandium @mikeconley @rillian)
Related: ee10eae
Full log of the test: https://open.cdash.org/testDetails.php?test=883197977&build=6530941
The text was updated successfully, but these errors were encountered: