Exploring the Compiler

So trying to build “The Tool” :tm: and running into a conundrum. I’ve been hacking within the compiler itself so far and adding said tool in parallel to the crystal tool format command. However, given its prototype-ness, I tried creating a new separate repo to house it so I could develop and ship it independently. Unfortunately, in that separate project, I’m running into the compiler error:

cc: error: /usr/share/crystal/src/llvm/ext/llvm_ext.o: No such file or directory

This looks like its coming from the requirement chain:

compiler/crystal/program -> llvm -> lib_llvm_ext

This looks a bit tricky - I think it’s only needed for codegen purposes, which I don’t intend to use, but copy / pasting it into this side project to get past this check might be easiest path forward.

That, or I guess “continue building within the compiler” for the time being is another option :smile: I think it would be awesome if this tool ended up within the compiler tools, since it ties in so much with the compiler itself, but that position would need to be earned, not granted.