diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-05-17 09:33:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 09:33:20 +0200 |
commit | 7c64c707279fd115cc8bc49c92ca69b159aa6866 (patch) | |
tree | 3fd01238763f9c32d70adc9cbf0f79379bfd394a /kernel | |
parent | 98c7804b89f5d384c920fe2280ed33432207f0cb (diff) | |
parent | 6c6017c97374d0c0c01b87f1ce960ee9316a81b2 (diff) | |
download | yosys-7c64c707279fd115cc8bc49c92ca69b159aa6866.tar.gz yosys-7c64c707279fd115cc8bc49c92ca69b159aa6866.tar.bz2 yosys-7c64c707279fd115cc8bc49c92ca69b159aa6866.zip |
Merge pull request #3310 from robinsonb5-PRs/master
Now calls Tcl_Init after creating the interp, fixes clock format.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 09909696b..4e1a3ca7e 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -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; |