3 ms·
I asked the guy working on compiler-rt to change one boolean so the LLVM 18 build would work on macOS, and he locked the whole issue down as "heated" and it's s
by hoyhoy 9mo ago
I asked the guy working on compiler-rt to change one boolean so the LLVM 18 build would work on macOS, and he locked the whole issue down as "heated" and it's still not fixed four years later.
I love LLVM though. clang-tidy, ASAN, UBSAN, LSAN, MSAN, and TSAN are AMAZING. If you are coding C and C++ and NOT using clang-tidy, you are doing it wrong.
My biggest problem with LLVM rn is that -fbounds-safety is only available on Xcode/AppleClang and not LLVM Clang. MSAN and LSAN are only available on LLVM and not Xcode/AppleClang. Also Xcode doesn't ship clang-tidy, clang-format, or llvm-symbolizer. It's kind of a mess on macOS rn. I basically rolled my own darwin LLVM for LSAN and clang-tidy support.
The situation on Linux is even weirder. RHEL doesn't ship libcxx, but Fedora does ship it. No distro has libcxx instrumented for MSAN at the moment which means rolling your own.
What would be amazing is if some distro would just ship native LLVM with all the things working out of the box. Fedora is really close right now, but I still have to build compiler-rt manually for MSAN support..
- cogman10 9mo agoGentoo is calling you ;) https://wiki.gentoo.org/wiki/LLVM https://wiki.gentoo.org/wiki/LLVM
- LeFantome 9mo agoDo Chimera Linux or Mandriva not have LLVM working out of the box in your view? I mean, Chimera Linux is pretty LLVM native.
- mort96 9mo agoWait is THAT why I've been unable to build compiler-rt on macOS? Do you have a link?
- hoyhoy 9mo agoThere are a cluster of issues. macOS is linked against Xcode's libcxx. LLVM 21 changed the ABI compatibility because they upgraded the hashing algorithm from murmur to something even fancier. Homebrew has it fixed allegedly, but I keep getting gh notifications from people having issues. My solution is not for the weak of spirit... https://gist.github.com/hoyhoy/492cf3077239baececb6b838bf620d39 https://gist.github.com/hoyhoy/492cf3077239baececb6b838bf620...
- erichocean 9mo ago> What would be amazing is if some distro would just ship native LLVM with all the things working out of the box. Omarchy could/should do this, nice low-hanging fruit. @dhh, if you're listening, the other good thing Omarchy could do is support the VFX Reference Platform specs maintained by the ASWF. That would bring in all of the Linux-based VFX software to Omarchy in a clean way.