mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3310 from robinsonb5-PRs/master
Now calls Tcl_Init after creating the interp, fixes clock format.
This commit is contained in:
commit
7c64c70727
|
@ -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_warning("Tcl_Init() call failed - %s\n",Tcl_ErrnoMsg(Tcl_GetErrno()));
|
||||
Tcl_CreateCommand(yosys_tcl_interp, "yosys", tcl_yosys_cmd, NULL, NULL);
|
||||
}
|
||||
return yosys_tcl_interp;
|
||||
|
|
Loading…
Reference in New Issue