Hi,

I'm trying to package terra for luapower, and I have a few
build-related questions.

1. I noticed that the default libterra.so is built with -g -O0 and
exports all LLVM symbols. This adds 14MB to an already huge binary
(the C++ symbols alone are 3MB). Is this needed for terra's runtime
debugging facilities or is this just for developing terra itself? Are
there caveats to removing -g -O0 and instead adding -s -O2 to create a
more release-like build? Btw, the LLVM that I'm linking terra against
was built in release mode so there's no debug syms in that either.

2. I'm building terra for 32bit linux/osx/mingw but there's no tdebug
support for 32bit. I'm not sure exactly how bad this is for developing
in practice because I haven't written much terra code yet :) Is this
support planned? How bad is dev'ing without it? I noticed that it's
missing on ARM too... I could add it myself of course but it's an area
where I don't have much experience with so I wanted to ask first.

3. I'd like to bundle LLVM+needs-parts-of-Clang into libterra.a so
that static app builds can be made with simply -lterra as opposed to
`-lterra path-to/llvm-config --libfiles`. This is easy with the
archiver on Linux and mingw but couldn't figure it out for OSX. Any
hints on that?

(I might have more questions in the future so I hope you'll bear with
me for a while)

Thanks,
Cosmin.
_______________________________________________
terralang mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/terralang

Reply via email to