Re: Produce Linux object files under Windows

2018-05-16 Thread Steve Hill
OK, I've dug further on the unresolved symbols and it appears that the dump() methods have been removed from the release build of LLVM in v5.0. >From this LLVM dev group post: dump() is meant as a helper for people using a debugger

Re: Produce Linux object files under Windows

2018-05-16 Thread Dmitry Babokin
Steve, Sorry for slow responses, I'm on vacation, so checking my mail not frequently. 1. You need to apply only patches starting with LLVM number that you build (i.e. only 5_0_* patches). Usually we report the bugs to LLVM community and they are fixed in later versions, but they may be late for a

Re: Produce Linux object files under Windows

2018-05-16 Thread Steve Hill
Hi Dmitry, My apologies for interrupting your vacation! I agree that my overall changes are not likely to be useful - I was thinking of a pull request that replaces the use of dump() so that the special build of LLVM for v5.0 and later can be removed. Let me know what you think. I can certain

Re: Produce Linux object files under Windows

2018-05-16 Thread Dmitry Babokin
Steve, I prefer to keep dump() in the source, without this call [--debug-phase=] switch is not possible. And it's very helpful for debugging compiler bugs. Special LLVM build should not be a big deal, as it's almost always need to be patched version of LLVM. So adding extra CMake flag seems to be