cutekit fails to pick up latest clang
When trying to build vaev, I got a number of compilation errors that I deduced stemmed from using an older clang. Upon inspection, it became clear cutekit's {shell.latest('clang++')} was picking up clang++-17 from AUR/clang17-bin
I wasn't able to quickly track down where in cutekit this lives, but removing clang17-bin solved the problem (moved past that particular error anyway) inasmuch as cutekit picked up a newer clang (can't tell which one yet). Let me know if you need me to help debug.
FYI: cutekit was installed with pipx
Yeah, it’s trying to pick up the latest Clang based on the executable name alone, and it assumes clang++ is older than clang++-17 just because it lacks a number; this is a limitation. It would require a better toolchain-detection mechanism, but that’s a hard problem.
Supporting CC and CXX env vars would short-circuit the problem. As far as it being hard, surely parsing the output of clang --version is easier than.. pretty much everything you've ever done (like writing an OS from scratch) ;)
I’ve pushed an update to the ce-targets repository.
Once @sleepy-monax bumps the dependency to version 0.5.0, you should have fully working CC and CXX environment variable support.