[HIP] Make `--offload-add-rpath` alias of `-frtlib-add-rpath`
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 6 Mar 2023 16:45:11 +0000 (11:45 -0500)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Sat, 11 Mar 2023 18:33:17 +0000 (13:33 -0500)
commit43c90f905a2293dde1d6975e6747ce50063cd155
tree8a625b72efb7a0f8135859f55f9460f7a218fbbb
parent988355808efcf88719b0fa542779c47742756764
[HIP] Make `--offload-add-rpath` alias of `-frtlib-add-rpath`

HIP runtime is the language runtime of HIP. When users need
to specify rpath, they usually need to specify rpath for
both compiler-rt and HIP runtime. It seems redundant
to have separate options. Therefore make --offload-add-rpath
an alias to -frtlib-add-rpath.

Reviewed by: Fangrui Song, Artem Belevich

Differential Revision: https://reviews.llvm.org/D145393
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/hip-runtime-libs-linux.hip