[llvm-dev] can't compile llvm source on Windows Mobile

David Chisnall via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 3 01:10:05 PST 2015


On 2 Nov 2015, at 19:35, Bixia Zheng via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> The current LLVM source can’t be compiled on Windows 10 Mobile because it uses some Windows APIs that are not available on mobile platform.
> Below is a detail example. I would like to get your suggestion on how to work-around this or fix it properly.
>  
> This API is tagged as desktop only:    CreateJobObjectW, see https://msdn.microsoft.com/en-us/library/windows/desktop/ms682409(v=vs.85).aspx
> It is used in lib/Support/Windows/Program.inc, then used in lib\Support\Program.cpp and llvm::DisplayGraph indirectly.

If the only place that this is used is in DisplayGraph then it’s probably safe to simply #ifdef it out for Windows Mobile.  That API is intended to only be used when debugging, and the kind of debugging environment doesn’t really make sense for a mobile device that doesn’t have the debugger / toolchain running locally.  It would probably be worth modifying DisplayGraph to dump the contents of the .dot file in the debugger, when it is not possible to run other programs.

David



More information about the llvm-dev mailing list