mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix GHDL support
This commit is contained in:
		
							parent
							
								
									9f4d385e35
								
							
						
					
					
						commit
						f6d577aed1
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -3758,7 +3758,11 @@ struct VerificPass : public Pass { | |||
| 				exe_path[length] = '\0'; | ||||
| 
 | ||||
| 				// Get dirname of exe path
 | ||||
| 				std::string ghdl_path = std::string(FileSystem::Dirname(exe_path)) + "/ghdl"; | ||||
| 				const char *dirname = FileSystem::Dirname(exe_path).c_str(); | ||||
| 				std::string ghdl_path = std::string(dirname) + "/bin/ghdl"; | ||||
| 				log("Exe path: %s\n", exe_path); | ||||
| 				log("Exe dirname: %s\n", dirname); | ||||
| 				log("GHDL path: %s\n", ghdl_path.c_str()); | ||||
| 
 | ||||
| 				// Check if GHDL binary exists, else use system path
 | ||||
| 				if (!FileSystem::PathExists(ghdl_path.c_str())) ghdl_path = "ghdl"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue