mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed bug in "show -format .."
This commit is contained in:
		
							parent
							
								
									183d4f8e71
								
							
						
					
					
						commit
						07afb14318
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -794,7 +794,7 @@ struct ShowPass : public Pass {
 | 
				
			||||||
			log_cmd_error("Nothing there to show.\n");
 | 
								log_cmd_error("Nothing there to show.\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (format != "dot" && !format.empty()) {
 | 
							if (format != "dot" && !format.empty()) {
 | 
				
			||||||
			std::string cmd = stringf("dot -T%s -o '%s.new' '%s' && mv '%s.new' '%s'", format.c_str(), out_file.c_str(), dot_file.c_str(), dot_file.c_str(), dot_file.c_str());
 | 
								std::string cmd = stringf("dot -T%s -o '%s.new' '%s' && mv '%s.new' '%s'", format.c_str(), out_file.c_str(), dot_file.c_str(), out_file.c_str(), out_file.c_str());
 | 
				
			||||||
			log("Exec: %s\n", cmd.c_str());
 | 
								log("Exec: %s\n", cmd.c_str());
 | 
				
			||||||
			if (run_command(cmd) != 0)
 | 
								if (run_command(cmd) != 0)
 | 
				
			||||||
				log_cmd_error("Shell command failed!\n");
 | 
									log_cmd_error("Shell command failed!\n");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue