LLVMPYã使ããããã«ãªã£ãï¼
ååããã°æ¸ããã¨ããããè¡ãè©°ã¾ã£ã¦ããã§ããï¼è¦ªåãªå 輩ã«æãã¦ããã ãã¦ä½¿ããããã«ãªãã¾ããï¼
çµè«ããè¨ãã¨ï¼LLVMPYã®QuickStart(http://www.llvmpy.org/)ã¡ããã¨èªãã§ãªãã£ãã®ãåå ã§ããï¼llvmã¯å ¥ãã¦ãããllvmpyå ¥ããã¨ããããã§ãããã¼ã¨èªã¿é£ã°ãã¦ãã®ããããªãã£ãã§ãï¼åçãã¾ããï¼
3ã¤ç®ã®ã¨ããã«ã¡ããã¨æ¸ãã¦ããã¾ããï¼
Note: With LLVM 3.2+, the default build configuration has C++ RTTI disabled. However, llvmpy requires RTTI.
åå ã¯ããã§ããï¼
ã§ãï¼ãã®éãã«ãã£ã¦ãã¤ã¾ãã¾ããï¼
æå¾ã«ï¼
% python -c "import llvm; llvm.test()"
ã¨ãããã§ããï¼ããããã¨ï¼
ImportError: No module named _capsule
ã¨ã¨ã©ã¼ãã§ã¾ããï¼ãã®ã³ãã³ãã¯llvmpyã®ãã£ã¬ã¯ããªãããªãã¦ï¼ããï¼ã¤ä¸ã®llvmpyã£ã¦ãã£ã¬ã¯ããªã§å®è¡ããããã§ãï¼
% cd llvm
% python -c "import llvm; llvm.test()"
ããããã¨ç¡äºå®è¡ã§ãã¦ï¼æå¾ã«
OK
PASSED
ã£ã¦åºãã®ã§ãããããã§ãï¼