Improve build system
Closed this issue · 0 comments
vosen commented
Expected outcome:
Currently ZLUDA uses just cargo. One of the biggest problems with cargo is that it's very limited as a build system. In particular, we need to support post-build actions: after ZLUDA build zluda successfully it should be renamed (or rather symlinked) to correct platform-specific names (libcuda.so and nvcuda.dll). Also, correct folders with correct symlinks should be set for zluda_dump
Comments:
- Cargo has been refusing this feature for a decade now: rust-lang/cargo#545
- Best implementation would be through cargo-xtask pattern https://github.com/matklad/cargo-xtask because it requires no third-party dependencies
- If going that way please use bpaf (https://crates.io/crates/bpaf) for consistency with the rest of the project