[HIPIFY] Introduce option -o-dir
Option -o-dir for output directory: + if not specified source file(s) directory is used; + creates the directory if the directory doesn't exist (only one level in a tree); + if -o and -o-dir both are specified the hipified file is placed to "-o-dir" + "-o"; + reports an error in case of a wrong directory specified, in case of necessity of creating a tree of subfolders, or in case of a filename specified.
This commit is contained in:
@@ -29,6 +29,11 @@ cl::opt<std::string> OutputFilename("o",
|
||||
cl::value_desc("filename"),
|
||||
cl::cat(ToolTemplateCategory));
|
||||
|
||||
cl::opt<std::string> OutputDir("o-dir",
|
||||
cl::desc("Output direcory"),
|
||||
cl::value_desc("directory"),
|
||||
cl::cat(ToolTemplateCategory));
|
||||
|
||||
cl::opt<std::string> TemporaryDir("temp-dir",
|
||||
cl::desc("Temporary direcory"),
|
||||
cl::value_desc("directory"),
|
||||
|
||||
Reference in New Issue
Block a user