src/utils/disasm.cc: "llvm/Support/TargetRegistry.h" moved since llvm-14
thelastlin opened this issue · 2 comments
thelastlin commented
See also: llvm/llvm-project@89b5706 and Differential Revision
One of workarounds:
if [ "$(llvm-config --version | awk -F. '{print $1}')" -ge "14" ]; then
sed -i "s/\"llvm\/Support\/TargetRegistry.h\"/\"llvm\/MC\/TargetRegistry.h\"/g" $NEMU_HOME/src/utils/disasm.cc
fi
sashimi-yzh commented
Thank you! I fix this issue with conditional compilation. See this.
Would you please test it?
thelastlin commented
Thank you! I fix this issue with conditional compilation. See this.
Would you please test it?
LGTM, able to make
and make run
.
=========================
Distro: Ubuntu 22.04 LTS (dev branch)
Kernel: Linux 5.15.0-25-generic
GCC: 11.2.0
LLVM: 14.0.0