[HIPIFY] Introduce '--' option - a separator between hipify-clang and clang options

+ Append '--' to the end of hipify-clang options in case of its absence.

[Reason]
+ Avoid the necessity for the user in JSON compilation database specification.
  Otherwise:
  Error while trying to load a compilation database:
  Could not auto-detect compilation database for file "test.cu"

  Though the hipification will be performed correctly without JSON database.
This commit is contained in:
Evgeny Mankov committed 2019-01-10 18:27:30 +03:00
1 parent fe4d1d7f2c
commit aa4c59ae0c
3 files changed
+13

No files matched your search

+5
View File
@@ -84,4 +84,9 @@ cl::opt<bool> Examine("examine",
cl::value_desc("examine"),
cl::cat(ToolTemplateCategory));
cl::opt<bool> DashDash("-",
cl::desc("Separator between hipify-clang and clang options;\ndon't specify if there are no clang options."),
cl::value_desc("--"),
cl::cat(ToolTemplateCategory));
cl::extrahelp CommonHelp(ct::CommonOptionsParser::HelpMessage);