Wednesday, May 31, 2017

clang luajit unwinding

a little late to the party, but luajit is broken with clang because it needs
special libunwind support or something. that's the story so far.

anyway, looking closer at luajit I notice that "external" unwinding is only
the default on amd64. i386 and others use internal unwinding. one can also
disable unwinding by defining LJ_NO_UNWIND.

anyway, that's what I did, and things seem to work fine. there's a long
comment in src/lj_err.c that lays out the pros and cons of each approach,
mostly less c++ compat. i personally don't much care, and if it only works on
one architecture, I'd say it's questionable to rely on this feature.

maybe we can live without unwind in luajit?

No comments:

Post a Comment