[clang] [Clang] Forward -rpath flag to the correct format in CPU offloading (PR #95763)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 18 06:19:13 PDT 2024
mikaoP wrote:
Maybe I'm not getting what you say. I see that when you use `-fopenmp-targets=x86-64-unknown-linux-gnu` then no gcc command is issued. In any case, a clang command is run with `-rpath <path>` or `-Wl,-rpath,<path>`. The last is what this patch does only for CPU offloading. I guess that does not affect with nvlink, since this is npvtx offloading, right?
In the end, clang will understand both rpath formats, but the flag is forwarded to gcc, which only understand the `-Wl` one.
https://github.com/llvm/llvm-project/pull/95763
More information about the cfe-commits
mailing list