abc: Allow +/ filenames in the abc command
authorRobert Ou <rqou@robertou.com>
Fri, 11 Aug 2017 04:10:07 +0000 (21:10 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Mon, 14 Aug 2017 19:11:11 +0000 (12:11 -0700)
passes/techmap/abc.cc

index d0f772be48d6dce4181fae53c2f70f8bb127cd6d..3d943e68291fa40b58911026cd5bee7eaef3a7f9 100644 (file)
@@ -1431,17 +1431,20 @@ struct AbcPass : public Pass {
                        }
                        if (arg == "-script" && argidx+1 < args.size()) {
                                script_file = args[++argidx];
+                               rewrite_filename(script_file);
                                if (!script_file.empty() && !is_absolute_path(script_file) && script_file[0] != '+')
                                        script_file = std::string(pwd) + "/" + script_file;
                                continue;
                        }
                        if (arg == "-liberty" && argidx+1 < args.size()) {
                                liberty_file = args[++argidx];
+                               rewrite_filename(liberty_file);
                                if (!liberty_file.empty() && !is_absolute_path(liberty_file))
                                        liberty_file = std::string(pwd) + "/" + liberty_file;
                                continue;
                        }
                        if (arg == "-constr" && argidx+1 < args.size()) {
+                               rewrite_filename(constr_file);
                                constr_file = args[++argidx];
                                if (!constr_file.empty() && !is_absolute_path(constr_file))
                                        constr_file = std::string(pwd) + "/" + constr_file;