How to make llvm jit work in MSVC++

后端 未结 2 1772
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 04:25

It appears that Kaleidoscope example in LLVM has been broken, at least in MSVC++ x64 for a quite while, maybe several months. It doesn\'t work in MCJIT and in their new Orc

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-16 05:25

    Lang Hames from the llvm mailing list was able to answer this question. It appears that method COFFObjectFile::getSymbolFlags doesn't enable SF_Export flag at all, thus making all created symbols invisible for the Kaleidoscope's findSymbol method in the Windows platform. It is possible to get access to non-exported symbols though, so some kind of workaround is possible.

提交回复
热议问题