mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Makefile: don't assume python is called python3
				
					
				
			On some architectures, notably on Windows, the official name for the Python binary from python.org is `python`. The build system assumes that python is called `python3`, which breaks under this architecture. There is already infrastructure in place to determine the name of the Python binary when building PYOSYS. Since Python is now always required to build Yosys, enable this check universally which sets the `PYTHON_EXECUTABLE` variable. Then, reuse this variable in other Makefiles as necessary, rather than hardcoding `python3` everywhere. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
		
							parent
							
								
									e8ef3fcdfc
								
							
						
					
					
						commit
						82f60ba938
					
				
					 6 changed files with 9 additions and 9 deletions
				
			
		|  | @ -9,12 +9,12 @@ GENFILES += techlibs/common/simcells_help.inc | |||
| 
 | ||||
| techlibs/common/simlib_help.inc: techlibs/common/cellhelp.py techlibs/common/simlib.v | ||||
| 	$(Q) mkdir -p techlibs/common | ||||
| 	$(P) python3 $^ > $@.new | ||||
| 	$(P) $(PYTHON_EXECUTABLE) $^ > $@.new | ||||
| 	$(Q) mv $@.new $@ | ||||
| 
 | ||||
| techlibs/common/simcells_help.inc: techlibs/common/cellhelp.py techlibs/common/simcells.v | ||||
| 	$(Q) mkdir -p techlibs/common | ||||
| 	$(P) python3 $^ > $@.new | ||||
| 	$(P) $(PYTHON_EXECUTABLE) $^ > $@.new | ||||
| 	$(Q) mv $@.new $@ | ||||
| 
 | ||||
| kernel/register.o: techlibs/common/simlib_help.inc techlibs/common/simcells_help.inc | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue