Top all-time · #21919
mcilloni's blog
Personal blog · mcilloni.ovhprogrammingsystemsweb
mcilloni's blog is a personal blog at mcilloni.ovh about programming, systems and web. Since 2018, 3 different Hacker News readers have linked it 6 times, most often “How to use Clang to cross compile for everything”. The last post was in 2023, but the archive is still widely read.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
HN readers link this blog's post on cross-compiling C/C++ with Clang by supplying a sysroot for each target platform. One commenter cites it while comparing Clang's approach with Zig's bundled headers and libraries.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- How to use Clang to cross compile for everything2 people · 4 mentions · first linked 2021-02-11
What Hacker News says?
I recently learned that Clang supports this kind of cross-compiling out of the box. https://mcilloni.ovh/2021/02/09/cxx-cross-clang/ The main difference is that Clang does not ship with headers/libraries for different platforms, as Zig appears to do. You need to give Clang a "sysroot" -- a path that has the headers/libraries for the platform you want to compile for. If you create a bunch of sysroots for various arch…
Comment linking /2021/02/09/cxx-cross-clang/
on “Using Zig as cross-platform C toolchain”Submitted NAT66: The good, the bad, the ugly as a story · 17 points
HN discussionSubmitted Unicode is harder than you think as a story · 5 points
HN discussionSubmitted How to use Clang to cross compile for everything as a story · 3 points
HN discussionSubmitted Cross compiling made easy, using Clang and LLVM as a story · 3 points
HN discussionSubmitted How to cross compile and static link on Linux with Clang as a story · 1 points
HN discussion