Skip to content
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

building locally on windows spawns window for every cl.exe invocation #67

Closed
wanderview opened this issue Jan 30, 2017 · 4 comments
Closed

Comments

@wanderview
Copy link

I am trying to use sccache2 on my local windows 10 machine. I put this in my mozconfig:

ac_add_options --with-ccache=sccache.exe
export _DEPEND_CFLAGS='-deps$(MDDEPDIR)/$(@F).pp'
mk_add_options "export CC_WRAPPER="
mk_add_options "export CXX_WRAPPER="
mk_add_options "export COMPILE_PDB_FLAG="
mk_add_options "export HOST_PDB_FLAG="
mk_add_options "export MOZ_DEBUG_FLAGS=-Z7"

It seems to be working, but there is a major usability problem. Every invocation of cl.exe spawns a new window. These appear and disappear rapidly changing the focus constantly. This makes the machine pretty useless until the compile ends.

@flxo
Copy link
Contributor

flxo commented Jan 30, 2017

Build sccache with --features=unstable. This will make sccache spawn the compilation in the background.

@luser
Copy link
Contributor

luser commented Jan 30, 2017

Note that you need to do that with a nightly Rust compiler currently. When Rust 1.16 ships the feature we're using for that will be stable and we can just require Rust 1.16 and use it by default.

@luser
Copy link
Contributor

luser commented Jan 30, 2017

Also FYI, I have a bug to make simply --with-ccache=path/to/sccache work in the Firefox build system.

@luser luser closed this as completed Jan 30, 2017
@wanderview
Copy link
Author

Thanks! Nice to see this getting some investment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants