bvanseg / ccake

A command line tool written in Rust and designed to be a modern build tool + package manager for C/C++ projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search for and use native toolchains before installing

bvanseg opened this issue · comments

Is your feature request related to a problem? Please describe.
Currently, ccake install will pull a download script and attempt to install the target tool/lib without any questions. The problem with this is that when used for toolchains, the toolchain may already be located on the user's system somewhere. If the versions of the ccake install target and the native toolchain match up, then the native toolchain should be preferred instead of needlessly redownloading it to .ccake/cache.

Describe the solution you'd like
Search the user's system for the native toolchain and use that toolchain instead of redownloading it. If a user is trying to use gcc for example, but gcc is already present, the native gcc should be preferred only if its versioning is greater or equal to the current install target.

Describe alternatives you've considered
N/A

Additional context
N/A