[PATCH] D125165: [Clang] Introduce clang-offload-packager tool to bundle device files

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 3 15:53:56 PDT 2022


MaskRay added a comment.

Add openmp to `LLVM_ENABLE_PROJECTS` to trigger the issue:

  cmake -GNinja -Sllvm -B/tmp/out/play -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='clang;openmp' -DCMAKE_CXX_COMPILER=~/Stable/bin/clang++ -DCMAKE_C_COMPILER=~/Stable/bin/clang -DCMAKE_INSTALL_PREFIX=/tmp/install/play
  ninja -C /tmp/out/play install

  clang: error: unable to execute command: Executable "clang-offload-packager" doesn't exist!
  clang: error: clang-offload-packager command failed with exit code 1 (use -v to see invocation)
  [527/5061] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
  ninja: build stopped: subcommand failed.

`[Clang] Change the offload packager build to be a clang tool` does not fix the issue.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125165/new/

https://reviews.llvm.org/D125165



More information about the cfe-commits mailing list