Build Compiler-rt as runtime

Hi all,
What is the difference between building compiler-rt as an LLVM project or LLVM runtime? I am extending address sanitizer support for GPUs and I seeing some build issues only when I build compiler-rt as runtime.

The big difference is that building as a “runtime” builds clang, and uses the built clang to compile compiler-rt. Other ways of building compiler-rt use the compiler you specify to CMake.

1 Like

On a related topic, is there a way to run just the compiler-rt tests? I’ve tried check-compiler-rt, check-runtimes, check-runtime, none of which work.
Also llvm-lit compiler-rt\test doesn’t work, “contained no tests.”

Thank you @efriedma-quic