Skip to content

Commit 4508676

Browse files
committed
libcache: support liberty filename globbing
1 parent 856a387 commit 4508676

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

passes/techmap/libcache.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@
9696
quiet = true;
9797
continue;
9898
}
99-
std::string fname = args[argidx];
100-
rewrite_filename(fname);
101-
paths.push_back(fname);
99+
append_globbed(paths, args[argidx]);
102100
break;
103101
}
104102
int modes = enable + disable + purge + list + verbose + quiet;

tests/liberty/libcache.ys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
libcache -verbose
2-
libcache -enable busdef.lib
2+
libcache -enable bus*f.lib
33

44
logger -expect log "Caching is disabled by default." 1
55
logger -expect log "Caching is enabled for `busdef.lib'." 1

0 commit comments

Comments
 (0)