yaxunl added a comment.

In D136854#3889141 <https://reviews.llvm.org/D136854#3889141>, @MaskRay wrote:

> If an option does not affect compilation, I prefer `--` to `-f`

I will rename it as --offload-add-rpath



================
Comment at: clang/include/clang/Driver/Options.td:4158
+  HelpText<"Add -rpath with HIP runtime library directory to the linker 
flags">;
+def fno_hiplib_add_rpath: Flag<["-"], "fno-hiplib-add-rpath">, 
Flags<[NoArgumentUnused]>,
+  HelpText<"Do not add -rpath with HIP runtime library directory to the linker 
flags">;
----------------
tra wrote:
> Any reason not to use `BoolFOption` instead of defining `-fno...` option 
> separately?
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.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136854/new/

https://reviews.llvm.org/D136854

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

Reply via email to