提交 28c066ee 编写于 作者: M Megvii Engine Team

fix(cmake/llvm): fix llvm build if env install llvm-12-dev

now, we do not depends LLVM_ENABLE_BINDINGS and LLVM_INCLUDE_DOCS module
so disable it! if later depends on this module, need upgrade
third_party/llvm-project/ to 12 to compat build env which install
llvm-12-dev

GitOrigin-RevId: 62164c0e7f0b3bb296c4b76a2a3eadd31c266421
上级 7b855dc6
......@@ -77,6 +77,8 @@ endfunction()
# llvm build options
set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "" FORCE)
set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "" FORCE)
set(LLVM_ENABLE_BINDINGS OFF CACHE BOOL "" FORCE)
set(LLVM_INCLUDE_BENCHMARKS OFF CACHE BOOL "" FORCE)
set(LLVM_ENABLE_RTTI ${MGE_ENABLE_RTTI} CACHE BOOL "" FORCE)
set(LLVM_TARGETS_TO_BUILD "X86;NVPTX;AArch64;ARM" CACHE STRING "" FORCE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册