llvm
328217f3 - [SYCL] Differentiate install targets for `clang*` binaries (#21598)

Commit
95 days ago
[SYCL] Differentiate install targets for `clang*` binaries (#21598) This PR adds the following: * The following symlinks in `CMAKE_INSTALL_PREFIX/bin` folder: `dpclang`, `dpclang++`, `dpclang-cl`, `dpclang-cpp`, `dpsycl-ls`, `dpsycl-prof`, etc. They WON'T point to real `clang`, `clang++`, etc binaries. They point to the tool below. * Adds a tool similar to AMD's `amdllvm` tool: https://github.com/ROCm/llvm-project/tree/amd-staging/clang/tools/amdllvm. It is called `dpllvm`. What it does - when we run `dpclang++` symlink, it runs `dpllvm` tool. `dpllvm` gets "clang++" from "dpclang++" and executes `clang++`. The same will be with every other symlinks which start wqith `dp`. `clang` can run itself inside itself, so we need to keep the name of the binary - `clang++`. BTW, the same on Windows - but we will have tiny binaries `dpclang`, `dpclang++`, etc - as Windows does not support symlinks. So we will avoid renaming `clang++` to `dpclang++` on Windows and the size of binary distribution on Windows won't be bigger - there won't be copies of `clang`, `clang-cl`, etc binaries. * Adds `dpllvm` and `dpclang`, `dpclang++`, `dpclang-cl`, `dpclang-cpp`, `dpsycl-ls`, `dpsycl-prof`, etc. not only to `CMAKE_INSTALL_PREFIX/bin` but also to `build/bin` - and use these binaries everywhere in LIT tests (like it is already done in this PR) Fixes https://github.com/intel/llvm/issues/21511 --------- Co-authored-by: dmitry.vodopyanov <dvodopya@smtp.igk.intel.com>
Author
Parents
Loading