找不到“Attributes.inc”文件

2024-05-07

我一直在使用中提供的标题include\llvm and include\llvm-c尝试制作我自己的编译器。但是,每当我尝试编译时,都会收到此错误。没有llvm/IR/Attributes.inc在我的文件或我见过的任何 LLVM 项目中。我收到此错误:

In file included from ./headers/llvm/IR/Function.h:26:
In file included from ./headers/llvm/IR/Argument.h:19:
./headers/llvm/IR/Attributes.h(74,14):  fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"

这里有什么问题?


我遇到了同样的问题。我通过将以下行添加到相关的内容来修复它CMakeLists.txt

> add_dependencies(<Module Name> intrinsics_gen)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

找不到“Attributes.inc”文件 的相关文章

随机推荐