Got lucky with a web search just now. I wanted to debug a crash in LLVM. For oth...

@simontatham@hachyderm.io

Got lucky with a web search just now.

I wanted to debug a crash in LLVM. For other programs I'd start by compiling with Address Sanitizer. LLVM's build process is tricky enough that you might not do that the obvious way, so I websearched "build llvm with address sanitizer".

Foolish me! That can also be interpreted as "build an LLVM toolchain that includes ASan for end users to use on the programs they build with it". Most of the hits were about that, and not about the thing I wanted.

But lucky me! I found a Stack Overflow post that recognised the ambiguity and answered _both_ questions. Top marks, that poster.

(The answer is "-DLLVM_USE_SANITIZER=Address".)