Add an option --[no-]offload-add-rpath to control whether to
pass -rpath to linker for HIP runtime library. By default it
is off to match gcc/clang behavior for not adding -rpath
for runtime library by default.
Details
- Reviewers
tra - Commits
- rG55b43449978c: [HIP] add --offload-add-rpath
Diff Detail
Event Timeline
clang/include/clang/Driver/Options.td | ||
---|---|---|
4156 | This could be useful for CUDA, too. Perhaps it could use a more generic name like -foffload-add-rpath ? I wonder if it should be just --offload-add-rpath, though given that we already using -f for the options with similar purpose, it would be OK, too. | |
4158 | Any reason not to use BoolFOption instead of defining -fno... option separately? |
I will rename it as --offload-add-rpath
clang/include/clang/Driver/Options.td | ||
---|---|---|
4158 | BoolFOption seems to be associated with LangOpts or CodeGenOpts, but this one only affects the options passed to linker and does not have corresponding LangOpts or CodeGenOpts. This is similar to -frtlib-add-rpath. |
This could be useful for CUDA, too. Perhaps it could use a more generic name like -foffload-add-rpath ?
I wonder if it should be just --offload-add-rpath, though given that we already using -f for the options with similar purpose, it would be OK, too.