Open
Description
When we do: crystal build hello.cr --emit llvm-ir --no-codegen
It'll not generate the hello.ll
file even though it was asked for.
This is because the emit options are handled all-in-one-place in the CompilationUnit#emit
method
crystal/src/compiler/crystal/compiler.cr
Lines 676 to 687 in 80cbe66
Which is called in the codegen
block:
crystal/src/compiler/crystal/compiler.cr
Lines 339 to 353 in 80cbe66
At line 348.
I think it should emit what was asked for as soon as it get it, so the llvm-ir after it was built, the obj in the codegen phase, etc..
Activity