mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-09 17:31:59 +00:00
io: add append_globbed to resolve globs in regular pass arguments
This commit is contained in:
parent
e8f8297e5d
commit
161cdd349c
2 changed files with 8 additions and 0 deletions
|
@ -384,6 +384,13 @@ std::string escape_filename_spaces(const std::string& filename)
|
|||
return out;
|
||||
}
|
||||
|
||||
void append_globbed(std::vector<std::string>& paths, std::string pattern)
|
||||
{
|
||||
rewrite_filename(pattern);
|
||||
std::vector<std::string> globbed = glob_filename(pattern);
|
||||
copy(globbed.begin(), globbed.end(), back_inserter(paths));
|
||||
}
|
||||
|
||||
void format_emit_unescaped(std::string &result, std::string_view fmt)
|
||||
{
|
||||
result.reserve(result.size() + fmt.size());
|
||||
|
|
|
@ -469,6 +469,7 @@ bool is_absolute_path(std::string filename);
|
|||
void remove_directory(std::string dirname);
|
||||
bool create_directory(const std::string& dirname);
|
||||
std::string escape_filename_spaces(const std::string& filename);
|
||||
void append_globbed(std::vector<std::string>& paths, std::string pattern);
|
||||
|
||||
YOSYS_NAMESPACE_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue