Compiler z88dk Path Change¶
Change Summary¶
Changed from hardcoded snap path to portable PATH-based lookup.
Before¶
After¶
Benefits¶
- Portability: Works with any z88dk installation method (snap, source build, docker, etc.)
- Flexibility: Users can install z88dk however they prefer
- Standard Practice: Using
/usr/bin/envis the standard Unix way to find executables in PATH - No Configuration: No need to configure compiler paths or modify code for different systems
User Requirements¶
- z88dk must be installed
z88dk.zccmust be in PATH- Can verify with:
which z88dk.zcc
Installation Methods Supported¶
All of these now work as long as the binary is in PATH:
- Snap: sudo snap install z88dk (add /snap/bin to PATH)
- Source: Build from GitHub
- Docker: With wrapper script
- Package manager: Any future package manager installations
- Custom: Any custom installation location
Implementation¶
See: src/codegen_backend.py:get_compiler_command()
This change makes the compiler more user-friendly and follows Unix best practices for finding executables.