From 4508676e678af683991a7c3a37a997dca309dad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Ji=C5=99=C3=AD=20Tywoniak?= Date: Wed, 24 Sep 2025 11:31:06 +0200 Subject: [PATCH] libcache: support liberty filename globbing --- passes/techmap/libcache.cc | 4 +--- tests/liberty/libcache.ys | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/passes/techmap/libcache.cc b/passes/techmap/libcache.cc index c833a6046..e4326c49f 100644 --- a/passes/techmap/libcache.cc +++ b/passes/techmap/libcache.cc @@ -96,9 +96,7 @@ quiet = true; continue; } - std::string fname = args[argidx]; - rewrite_filename(fname); - paths.push_back(fname); + append_globbed(paths, args[argidx]); break; } int modes = enable + disable + purge + list + verbose + quiet; diff --git a/tests/liberty/libcache.ys b/tests/liberty/libcache.ys index 04257aa92..8132b3f11 100644 --- a/tests/liberty/libcache.ys +++ b/tests/liberty/libcache.ys @@ -1,5 +1,5 @@ libcache -verbose -libcache -enable busdef.lib +libcache -enable bus*f.lib logger -expect log "Caching is disabled by default." 1 logger -expect log "Caching is enabled for `busdef.lib'." 1