mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix SYNTHESIS always being defined in Verilog frontend
This commit is contained in:
		
							parent
							
								
									2116c58581
								
							
						
					
					
						commit
						c1f6ce8b33
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -321,7 +321,6 @@ struct define_body_t | |||
| define_map_t::define_map_t() | ||||
| { | ||||
| 	add("YOSYS", "1"); | ||||
| 	add(formal_mode ? "FORMAL" : "SYNTHESIS", "1"); | ||||
| } | ||||
| 
 | ||||
| // We must define this destructor here (rather than relying on the default), because we need to
 | ||||
|  |  | |||
|  | @ -446,6 +446,9 @@ struct VerilogFrontend : public Frontend { | |||
| 			} | ||||
| 			break; | ||||
| 		} | ||||
| 
 | ||||
| 		defines_map.add(formal_mode ? "FORMAL" : "SYNTHESIS", "1"); | ||||
| 
 | ||||
| 		extra_args(f, filename, args, argidx); | ||||
| 
 | ||||
| 		log_header(design, "Executing Verilog-2005 frontend: %s\n", filename.c_str()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue