gtbercea added a comment.

In https://reviews.llvm.org/D47394#1119056, @Hahnfeld wrote:

> Hmm, maybe the scope is much larger: I just tried linking an executable that 
> references a `declare target` function in a shared library. My assumption was 
> that this already works, given that `libomptarget`'s registration functions 
> can be called multiple times. Am I doing something wrong?


I believe this is a limitation coming from the Cuda toolchain. Not even nvcc 
supports this case: 
https://stackoverflow.com/questions/35897002/cuda-nvcc-building-chain-of-libraries


Repository:
  rC Clang

https://reviews.llvm.org/D47394



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to