driver.py: Properly detect cfg with ccache (#5579)

This commit is contained in:
Geza Lore 2024-11-01 17:14:17 +00:00 committed by GitHub
parent b097cec72d
commit 76b4c2f254
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2412,7 +2412,7 @@ class VlTest:
if VlTest._cached_cfg_with_ccache is None:
mkf = VlTest._file_contents_static(os.environ['VERILATOR_ROOT'] +
"/include/verilated.mk")
VlTest._cached_cfg_with_ccache = bool(re.match(r'OBJCACHE \?= ccache', mkf))
VlTest._cached_cfg_with_ccache = bool(re.search(r'OBJCACHE \?= ccache', mkf))
return VlTest._cached_cfg_with_ccache
def glob_some(self, pattern: str) -> list: