Closed anbe42 closed 1 year ago
@anbe42 thank you for reporting the issue. You're right that we should use find_program. Will be fixed by https://github.com/intel/opencl-clang/pull/500 https://github.com/intel/opencl-clang/pull/501 https://github.com/intel/opencl-clang/pull/502
PRs are merged into 16/17/main branches. Closing this issue.
Commit 1cde56c6cf1feaeb8f21b62f811c5c5d3c78da41 in branch ocl-open-170 added a call to
llvm-config --libs all
without checking wherellvm-config
resides ... on Debian it is not in the path (onlyllvm-config-17
is) but probably in${LLVM_TOOLS_BINARY_DIR}
.cmake will complain about too few arguments to REGEX REPLACE as the last argument is empty if the llvm-config call failed.
Maybe you need
(untested, modeled after
llvm-tblgen
usage)