Now calls Tcl_Init after creating the interp, fixes clock format.

This commit is contained in:
Alastair M. Robinson 2022-05-10 18:48:54 +01:00
parent c862b1dbfb
commit 83dbea1689
1 changed files with 2 additions and 0 deletions

View File

@ -733,6 +733,8 @@ extern Tcl_Interp *yosys_get_tcl_interp()
{
if (yosys_tcl_interp == NULL) {
yosys_tcl_interp = Tcl_CreateInterp();
if (Tcl_Init(yosys_tcl_interp)!=TCL_OK)
log("Tcl_Init() call failed\n");
Tcl_CreateCommand(yosys_tcl_interp, "yosys", tcl_yosys_cmd, NULL, NULL);
}
return yosys_tcl_interp;