[libomptarget][nfc] Add hook to easily disable building amdgcn bclib
This is useful when building LLVM with a toolchain that can't emit code
for amdgcn, e.g. because it overrides the include search path with headers
from another architecture, or the clang compiler is missing builtins.
When I build openmp as LLVM runtime (-DLLVM_ENABLE_RUNTIMES=openmp) in a fresh build directory, opt is not ready when this target should get built. I usually build massively parallel(-j48), so dependency issues will pop up from time to time.
I don't know why this did not happen before, but now this target misses a dependency to the OPT_TOOL built in the outer build process.
I find these lines in my build log:
When I revert this patch, I don't see the line about linking bin/opt at all. I have no idea, how this patch impacts the use of opt ?!?