Well the fix is building LLVM without assertions :).

But that doesn't get me any further. Now I get "__dso_handle" undefined, 
when I run "lli"...
Seems that this is some vodoo magic thing and defining it myself with:

extern "C"
{
const void *const __dso_handle = &__dso_handle;
}

Doesn't do a damn thing :O.

Also I get segmentation faults if I add more code. This is getting really 
weird.

Can someone who knows the autodebug feature please tell me what's going on 
here :). A simple main program like this:

int main(int argc, char** argv)
{
std::vector<std::string> args;

for (int i = 0; i < argc; i++)
{
args.emplace_back(argv[i]);
}
}

Will completely destroy LLVM in its current emscripten github checkout 
:)... So it shouldn't be hard to track down the issue.

I kinda have the feeling there is more to it than just running "lli" on 
emscripten bitcode because it just seems so completely broken that I can't 
believe this would have passed tests.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to