mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	This patch adds support for defining the ABC location at runtime instead of at compile time. This is helpful in build systems like bazel which do not have stable locations for binaries or directories during the compilation phase.
This change should be backwards compatible with the existing behavior.
This commit is contained in:
		
							parent
							
								
									e2a39bb1e7
								
							
						
					
					
						commit
						5c36e7757c
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -1471,7 +1471,12 @@ struct AbcPass : public Pass { | ||||||
| 		po_map.clear(); | 		po_map.clear(); | ||||||
| 
 | 
 | ||||||
| #ifdef ABCEXTERNAL | #ifdef ABCEXTERNAL | ||||||
| 		std::string exe_file = ABCEXTERNAL; | 		std::string exe_file; | ||||||
|  | 		if (std::getenv("ABC")) { | ||||||
|  | 			exe_file = std::getenv("ABC"); | ||||||
|  | 		} else { | ||||||
|  | 			exe_file = ABCEXTERNAL; | ||||||
|  | 		} | ||||||
| #else | #else | ||||||
| 		std::string exe_file = proc_self_dirname() + proc_program_prefix() + "yosys-abc"; | 		std::string exe_file = proc_self_dirname() + proc_program_prefix() + "yosys-abc"; | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue