当你看到提示“you may need to set cmake_prefix_path or llvm_install_dir to the location of”时,这通常意味着你的构建系统(如CMake)需要知道LLVM的安装位置,以便正确找到并使用LLVM库和工具。以下是如何设置这些环境变量的详细步骤: 1. 理解cmake_prefix_path或llvm_i
I take from this post from @MaskRay that using sysroot and gcc-install-dir should be working combination: When the GCC installation is not contained in the sysroot, typically the user wants to fix the GCC version as well. The new --gcc-install-dir= can be used instead. I have also ...
mark_as_advanced(CLANG_TOOLS_INSTALL_DIR) @@ -868,8 +871,6 @@ if(CLANG_BUILT_STANDALONE) process_llvm_pass_plugins() endif() get_filename_component(CLANG_INSTALL_LIBDIR_BASENAME "${CMAKE_INSTALL_LIBDIR}" NAME) configure_file( ${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake...
set(CMAKE_INSTALL_LIBDIR "lib64" CACHE STRING "") set(LLVM_LIBDIR_SUFFIX 64 CACHE STRING "") set(LLVM_ENABLE_LIBCXX ON CACHE BOOL "") set(ANDROID_RUNTIMES_ENABLE_ASSERTIONS ON CACHE BOOL "") Expand Down 2 changes: 1 addition & 1 deletion 2 clang/cmake/caches/Android.cmake Show...