Open DragonAxe opened 3 years ago
After some more testing, it appears the /Zm500
argument is not recognized as a valid flag.
@DragonAxe Do you mean that removing /Zm500
made it work for you?
@jviotti I didn't try removing that flag. Instead, I added some print statements to parse_arguments()
in src/compiler/msvc.rs
to see which of my compiler options was being picked up as an input file by Sccache.
In that same file I also noticed this comment: // TODO: what do do with precompiled header flags? eg: /Y-, /Yc, /YI, /Yu, /Zf, /ZH, /Zm
I tried adding msvc_flag!("Zm500", PassThrough),
to the list of recognized msvc_args!
, but wasn't able to get it to work by ignoring that argument (just as a temporary workaround to get things to work locally). I don't know enough about Rust or Sccache to do things other than trial and error at this point.
@DragonAxe Do you mean that removing
/Zm500
made it work for you?
@jviotti Yes, after disabling the addition of the /Zm500
flag in my cmake, I was able to get sccache to start caching (and the speed increase was glorious! :D ).
Versions tried: v0.2.15 and v0.2.16-alpha.0 (master build at 3f318a8675e4c3de4f5e8ab2d086189f2ae5f5cf)
Per a comment here: https://github.com/mozilla/sccache/issues/950 I tried downgrading to v0.2.12. However, while I no longer got "multiple input files" warnings, all compile requests were categorized as "Non-cacheable compilations".
Here is an example compile command:
Thank you all in advance!