gras icon indicating copy to clipboard operation
gras copied to clipboard

jit factory - use clang api

Open guruofquality opened this issue 11 years ago • 1 comments

Currently we execute the clang binary to get llvm bitcode. It should be possible to use the clang api to directly compile code and get an llvm Module. Some work here: https://github.com/guruofquality/grextras/tree/use_clang_api

However, ubuntu 12.10 has a clangdev missing important libraries. 13.04 has the working dev package. So users dont have to manually install clang-dev from source... we dont want to force the api usage option.

So when I get around to upgrading my ubuntu -- do an ifdef to support both executing and API.

guruofquality avatar Aug 01 '13 08:08 guruofquality

What a hole. The clang api doesnt include any of the c++ default headers paths:

  • http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-October/025134.html

guruofquality avatar Aug 07 '13 02:08 guruofquality