Skip to content

Commit

Permalink
Allow whitespace in tee command paths
Browse files Browse the repository at this point in the history
  • Loading branch information
malmeloo committed Sep 29, 2024
1 parent 8e1e2b9 commit 95a2099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion passes/cmds/tee.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95a2099

Please sign in to comment.