Skip to content

Commit

Permalink
driver.py: Properly detect cfg with ccache (verilator#5579)
Browse files Browse the repository at this point in the history
  • Loading branch information
gezalore authored Nov 1, 2024
1 parent b097cec commit 76b4c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_regress/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ def cfg_with_ccache() -> bool: # pylint: disable=no-method-argument
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:
Expand Down

0 comments on commit 76b4c2f

Please sign in to comment.