std::string path_to_clang_dir = "/foo/bar/" LLDB_INSTALL_LIBDIR_BASENAME "/clang/" CLANG_VERSION_MAJOR_STRING; #else std::string path_to_liblldb = "C:\\foo\\bar\\lib"; std::string path_to_clang_dir = "C:\\foo\\
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. - GetClangResourceDir: Fix downstream projects that bundle llvm source · wasix-org/llvm-project@c951960
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"; \ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/build/source/build-llvm/tools/clang/stage2-bins/lib /usr/bin/time -v ninja -j 6 -v -- The CXX compiler...
Hi, I'm trying to use clang with a custom sysroot (containing glibc) as well as a custom GCC, as follows: clang++ -fuse-ld=lld --sysroot=sysroot_x86_64_linux/ --gcc-install-dir=gcc_9_x86_64_linux/usr/lib/gcc/x86_64-pc-linux-gnu/9.4.0/ fo...
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*") add_library(bolt_rt_instr_osx STATIC @@ -45,5 +44,5 @@ if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*") target_compile_options(bolt_rt_instr_osx PRIVATE -target x86_64-apple-darwin19.6.0 ${BOLT_RT_FLAGS}) install(TARGETS bolt_rt...
``` PATH=/tmp/Rel/bin:$PATH # adapt according to your build directory mkdir -p d e f echo 'int main() {}' > d/a.c echo > d/b.c a() { rm $@ || exit 1; } clang --coverage d/a.c d/b.c && ./a.out a a-[ab].gc{no,da} clang --coverage d/a.c d/b.c -...
foreach(CANDIDATE "${Clang_DIR}/../.." "${LLVM_DIR}" "${LLVM_LIBRARY_DIRS}" "${LLVM_BUILD_LIBRARY_DIR}" "${LLVM_BINARY_DIR}/lib") "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}") # Build the resource directory path by appending 'clang/<version number>'. set(CANDIDATE_RESOURCE...