llvm2c icon indicating copy to clipboard operation
llvm2c copied to clipboard

build on llvm13.0

Open Moriarty002 opened this issue 4 years ago • 3 comments

image I met problem when building llvm2c It seems that some function is miss in newer llvm version

Moriarty002 avatar Sep 14 '21 01:09 Moriarty002

I've just tested the build with final release of LLVM 13 on Fedora and everything compiled without any issues for me. What distro are you using?

lzaoral avatar Oct 05 '21 12:10 lzaoral

I don't know what happen to my environment , my system has both llvm-13 and llvm-14 , may be I need to set the path to llvm ?

Moriarty002 avatar Oct 05 '21 16:10 Moriarty002

You can select the desired LLVM version by passing -DLLVM_DIR="$(llvm-config-13 --cmakedir)" to CMake assuming that LLVM 13's llvm-config is in your PATH (it is called llvm-config-13 on Debian and Ubuntu). Otherwise, you need to specify a full path to the corresponding llvm-config binary.

lzaoral avatar Oct 05 '21 17:10 lzaoral