cutekit icon indicating copy to clipboard operation
cutekit copied to clipboard

cutekit fails to pick up latest clang

Open paulie-g opened this issue 3 months ago • 2 comments

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

paulie-g avatar Nov 18 '25 08:11 paulie-g

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.

sleepy-monax avatar Nov 18 '25 08:11 sleepy-monax

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) ;)

paulie-g avatar Nov 18 '25 18:11 paulie-g

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.

keyboard-slayer avatar Nov 26 '25 11:11 keyboard-slayer