[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
2019-01-10 18:27:30 +03:00
parent 0661f69bff
commit 63b7fc5714
3 changed files with 13 additions and 0 deletions
+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);