Getting this to work is not particularly obvious, and having it as an example should be helpful.
Portions of this could be placed into LLVM, but as a whole it seems necessary to do this a higher level.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
examples/clang-interpreter/Manager.cpp | ||
---|---|---|
19 | windows.h with lower case w to not break mingw |
Blocked Win64 SEH for MingW entirely.
Theoretically it should be possible to throw a SEH from within mingw, but but I'm thinking clang may be generating exception handlers for the gcc runtime in that case.
I'll leave it up to someone with interest in such a mixture to figure that tout.
Done, and changed to 'windows.h', but blocked mingw from even attempting SEH for now.
Otherwise this looks good to me.
examples/clang-interpreter/CMakeLists.txt | ||
---|---|---|
74 | These debugging messages (this and the one below) should probably be stripped. | |
examples/clang-interpreter/Invoke.h | ||
11 | I believe you should use include guards in LLVM headers. Pragma once should work, but I don't think it's standard (and it doesn't seem to be used anywhere else in the codebase). | |
examples/clang-interpreter/Manager.h | ||
11 | Ditto here. |
Done, thanks. Would it be possible to look at D30709 as this depends on that. (ELF does not like Windows exceptions).
These debugging messages (this and the one below) should probably be stripped.