@@ -137,7 +137,8 @@ def run(command: list[str], *, cwd: Path, log: Path) -> dict[str, object]:
def extract_json(text: str) -> dict[str, object]:
- start = text.find("{")
+ marker = text.rfind('"creator":')
+ start = text.rfind("{", 0, marker) if marker >= 0 else -1
end = text.rfind("}")
if start < 0 or end < start:
raise RuntimeError("Yosys stat output did not contain JSON")