mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Use log_warning when Tcl_Init fails, report error with Tcl_ErrnoMsg.
This commit is contained in:
		
							parent
							
								
									83dbea1689
								
							
						
					
					
						commit
						6c6017c973
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -734,7 +734,7 @@ extern Tcl_Interp *yosys_get_tcl_interp()
 | 
				
			||||||
	if (yosys_tcl_interp == NULL) {
 | 
						if (yosys_tcl_interp == NULL) {
 | 
				
			||||||
		yosys_tcl_interp = Tcl_CreateInterp();
 | 
							yosys_tcl_interp = Tcl_CreateInterp();
 | 
				
			||||||
		if (Tcl_Init(yosys_tcl_interp)!=TCL_OK)
 | 
							if (Tcl_Init(yosys_tcl_interp)!=TCL_OK)
 | 
				
			||||||
			log("Tcl_Init() call failed\n");
 | 
								log_warning("Tcl_Init() call failed - %s\n",Tcl_ErrnoMsg(Tcl_GetErrno()));
 | 
				
			||||||
		Tcl_CreateCommand(yosys_tcl_interp, "yosys", tcl_yosys_cmd, NULL, NULL);
 | 
							Tcl_CreateCommand(yosys_tcl_interp, "yosys", tcl_yosys_cmd, NULL, NULL);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return yosys_tcl_interp;
 | 
						return yosys_tcl_interp;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue