spicy icon indicating copy to clipboard operation
spicy copied to clipboard

Possibly omit debug information from non-debug HLTO files

Open bbannier opened this issue 4 years ago • 2 comments

With #1092 we now omit debug information from Spicy and HILTI libraries in Release builds.

We should as a follow-up also omit debug information from HLTO files generated by e.g., spicyc and spicyz if Spicy itself was built without symbols (i.e., in Release mode). It looks like we might be able to achieve this by passing -s to the link step.

bbannier avatar Jan 13 '22 20:01 bbannier

Should tie this to -d then: keep symbols if in debug mode.

rsmmr avatar Jan 14 '22 08:01 rsmmr

The tricky bit here seems to be that no matter what linker flags I try I still cannot remove as much information as strip. I am able to halve the size of an HTLO file, but any linker flag seems to only accomplish a fraction of that.

bbannier avatar Jan 28 '22 15:01 bbannier