Without enabling clang following error messagesa are generated -
CMake Error at /home/user/project/llvm-project/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt:134 (add_custom_command):
Error evaluating generator expression: $<TARGET_FILE:clang> No target "clang"
Call Stack (most recent call first):
/home/user/project/llvm-project/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt:154 (add_cuda_bc_library)
And with enabling clang in the list of llvm projects to build, build was successful.