diff --git a/passes/techmap/clockgate.cc b/passes/techmap/clockgate.cc index 7c6ca5551..b68e5d93d 100644 --- a/passes/techmap/clockgate.cc +++ b/passes/techmap/clockgate.cc @@ -290,9 +290,7 @@ struct ClockgatePass : public Pass { continue; } if (args[argidx] == "-liberty" && argidx+1 < args.size()) { - std::string liberty_file = args[++argidx]; - rewrite_filename(liberty_file); - liberty_files.push_back(liberty_file); + append_globbed(liberty_files, args[++argidx]); continue; } if (args[argidx] == "-dont_use" && argidx+1 < args.size()) { diff --git a/tests/techmap/clockgate.ys b/tests/techmap/clockgate.ys index da0f9dc42..c28852ef8 100644 --- a/tests/techmap/clockgate.ys +++ b/tests/techmap/clockgate.ys @@ -194,7 +194,7 @@ select -assert-count 1 t:\\pdk_icg #------------------------------------------------------------------------------ design -load before -clockgate -liberty clockgate.lib +clockgate -liberty c*ckgate.lib # rising edge ICGs select -module dffe_00 -assert-count 0 t:\\pos_small