mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-18 22:59:03 +00:00
Allow whitespace in tee
command paths
This commit is contained in:
parent
8e1e2b9a39
commit
95a2099c90
|
@ -72,7 +72,9 @@ struct TeePass : public Pass {
|
|||
}
|
||||
if ((args[argidx] == "-o" || args[argidx] == "-a") && argidx+1 < args.size()) {
|
||||
const char *open_mode = args[argidx] == "-o" ? "w" : "a+";
|
||||
FILE *f = fopen(args[++argidx].c_str(), open_mode);
|
||||
auto path = args[++argidx];
|
||||
rewrite_filename(path);
|
||||
FILE *f = fopen(path.c_str(), open_mode);
|
||||
yosys_input_files.insert(args[argidx]);
|
||||
if (f == NULL) {
|
||||
for (auto cf : files_to_close)
|
||||
|
|
Loading…
Reference in a new issue