guruofquality / gras

GRAS: The GNU Radio Advanced Scheduler
https://github.com/guruofquality/gras/wiki
Other
24 stars 11 forks source link

jit factory - use clang api #116

Open guruofquality opened 10 years ago

guruofquality commented 10 years ago

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 commented 10 years ago

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