Stream: t-compiler/help

Topic: llvm debugging / assertions


Jake Goulding (Jun 13 2020 at 15:30, on Zulip):

Tracing down an AVR bug, I compiled LLVM with debugging and with assertions. Then I made some changes to src/librustc_codegen_llvm/common.rs. The stage1 build was taking forever, and then I realized that it's likely because of the non-release LLVM.

Is there any great solution to compiling in a reasonable time, or should I switch LLVM to release+debugsymbols?

eddyb (Jul 16 2020 at 13:02, on Zulip):

release + debuginfo, and assertions, should be fine

eddyb (Jul 16 2020 at 13:03, on Zulip):

but also you don't want to build the compiler twice if you're testing around LLVM, unless building rustc itself triggers the bug

Last update: Sep 28 2020 at 15:00UTC