The SDK requirement is due to some nonstandard code in the latest Microsoft
headers that clang rejects:
https://developercommunity.visualstudio.com/content/problem/132223/clang-cant-compile-wrlimplementsh.html

For now the easiest way forward is to go into Visual Studio Installer, add
"Windows 10 SDK (10.0.15063.0) for Desktop C++ [x86 and x64]" and remove
16299.

On Wed, Mar 14, 2018 at 6:20 AM, Marco Bonardo <mbona...@mozilla.com> wrote:

> It sounds cool and I'd really love to try, but:
> "ERROR: Found SDK version 10.0.16299.0 but clang-cl builds currently
> don't work with SDK version 10.0.16299.0 and later..."
>
> I know that I can set WINDOWSSDKDIR, but I'm not willing to mess too
> much with the env. Is there a bug tracking the update to the latest
> sdk, or automatically use the right one, that I can follow?
>
>
> On Tue, Mar 13, 2018 at 3:31 PM, David Major <dma...@mozilla.com> wrote:
> > Link xul.dll in 20 seconds with this one weird trick!
> >
> >
> >
> > Hi everyone,
> >
> >
> > clang-cl builds of Firefox have come a long way, from being a hobby
> project
> > of a few developers to running static analysis in CI for more than a year
> > now. The tools are in really good shape and should be ready for broader
> use
> > within Mozilla at this point.
> >
> >
> > Bug 1443590 is looking into what it would take to ship official builds
> with
> > clang-cl and lld-link, but in the meantime it's possible to do local
> builds
> > already. I'd like to invite people who develop on Windows to give it a
> try.
> >
> >
> > *** Reasons to use clang-cl and lld-link locally ***
> >
> >
> > - Speed! lld is known for being very fast. I'm serious about 20-second
> > libxuls. That's a non-incremental link, with identical code folding
> enabled.
> > For comparison, MSVC takes me over two minutes.
> >
> > - Speed again! clang-cl will integrate with upcoming sccache/icecream
> work.
> >
> > - Much clearer and more actionable error messages than MSVC
> >
> > - Make your own ASan and static analysis builds (the latter need an LLVM
> > before r318304, see bug 1427808)
> >
> > - Help ship Firefox with clang-cl by getting more eyes and machines on
> these
> > tools
> >
> >
> > *** Reasons not to use clang-cl and lld-link locally (yet) ***
> >
> >
> > - You are testing codegen-level fixes or optimizations and need to see
> the
> > exact bits that will be going out to users
> >
> > - lld-link currently doesn’t support incremental linking -- but with full
> > linking being so fast, this might not matter
> >
> > - You do artifact builds that don't use a local compiler
> >
> >
> > *** How do I get started? ***
> >
> >
> > https://developer.mozilla.org/en-US/docs/Mozilla/Developer_
> guide/Build_Instructions/Building_Firefox_on_Windows_with_clang-cl
> >
> >
> > A number of build system changes have landed that make these builds much
> > easier than before. For example you no longer need to use old versions of
> > MozillaBuild.
> >
> >
> > Note that clang-cl builds still depend on an MSVC installation for
> headers,
> > libraries, and auxiliary build tools, so don't go uninstalling your
> Visual
> > Studio just yet.
> >
> >
> > If you run into any problems, please stop by #build or visit the shiny
> new
> > Firefox Build System product in Bugzilla (formerly Core :: Build Config).
> >
> >
> > Thanks!
> >
> >
> >
> > _______________________________________________
> > firefox-dev mailing list
> > firefox-...@mozilla.org
> > https://mail.mozilla.org/listinfo/firefox-dev
> >
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to