Live data from Hacker News

Clang Is Now Used to Build Chrome for Windows

blog.llvm.org

1–10 of 105 posts

Re: Clang Is Now Used to Build Chrome for Windows

#2
Have seen a couple interesting articles[0][1] highlighting the weirdness of building Chromium on Windows, so hopefully this LLVM improvement will be a step towards a smoother process.

[0] https://randomascii.wordpress.com/2018/02/25/compiler-bug-li...

[1] https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and...

Re: Clang Is Now Used to Build Chrome for Windows

#6
post #3

Last time I tried to build Chrome/Chromium I had to mess about with this build system called Ninja. (Which worked well it was just awkward to set up on Windows). Is that still in play?

Ninja is used because it's simple, multiplatform and very fast. The mainstream alternatives offer at most 2 out of 3.

Re: Clang Is Now Used to Build Chrome for Windows

#7
> if your project is Windows-only, you can get a second compiler’s opinion on your code, and Clang’s warnings might find bugs

GCC (mingw.org and mingw-w64 triples) has existed and been able to do this, including and especially cross-compiling, for a long time. No need to manually download a Windows SDK either.

edited to add: to be fair, it's not ABI compatible with MSVC. But it deserves a mention and it's an easier option than MSVC-style build systems for many open source projects.

Re: Clang Is Now Used to Build Chrome for Windows

#9

Have seen a couple interesting articles[0][1] highlighting the weirdness of building Chromium on Windows, so hopefully this LLVM improvement will be a step towards a smoother process. [0] https://randomascii.wordpress.com/2018/02/25/compiler-bug-li... [1] https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and...

On HN:

[0] https://news.ycombinator.com/item?id=16463572

[1] https://news.ycombinator.com/item?id=14733829

Re: Clang Is Now Used to Build Chrome for Windows

#10
post #7

> if your project is Windows-only, you can get a second compiler’s opinion on your code, and Clang’s warnings might find bugs GCC (mingw.org and mingw-w64 triples) has existed and been able to do this, including and especially cross-compiling, for a long time. No need to manually download a Windows SDK either. edited to add: to be fair, it's not ABI compatible with MSVC. But it deserves a mention and it's an easier o…

Apple hired developers of Clang and started supporting Clang around the time GPLv3 was being pushed by FSF, Apple at the time was using GCC in their development and feared that GPLv3 would taint their code.

other than technical merits, permissible license of Clang is attractive for some developers/businesses

Post reply on HN