building llvm 7.0 for postgres 11

I hope this is the right place to post this.
I am trying to build llvm-7.0 for use with postgres-11 jit compilation.

My issues is the size of llvm. when i build it takes 30gb. bin/ is 17gb and lib/ is 12gb.
this seems quite large and as i'm trying to work with this in docker containers the size is make my them a bit unwieldy.

Is there a way to compile llvm to have a smaller footprint?

right now all i do is run make, then make.
am i new to llvm so any help would be appreciated.



Hi Reiner,

building Release mode significantly reduces the binary size.