llvm-project
49178107 - libclc: Pass LLVM_NATIVE_TOOL_DIR to runtime builds (#196498)

Commit
8 days ago
libclc: Pass LLVM_NATIVE_TOOL_DIR to runtime builds (#196498) This patch sets `LLVM_NATIVE_TOOL_DIR` in the runtime build configuration to point to the directory containing the just-built LLVM tools, allowing libclc to find them without requiring them to be installed on the host system. Fixes build errors like: ``` Error evaluating generator expression: $<TARGET_FILE:opt> No target "opt" ``` A few lines above this change, `extra_deps` list of dependencies for libclc is created. But those tools don't get build in the runtime build. We build libclc in the monolithic build and there we have all the tools which is why I've added the path to discover the tools.
Author
kwk kwk
Parents
Loading