DvvCz / cpkg

A dead simple package manager for C.
MIT License
1 stars 0 forks source link

Per backend configuration #12

Open DvvCz opened 3 months ago

DvvCz commented 3 months ago

This wasn't actually implemented despite being supported in cpkg.toml, but should be relatively easy to do with the Project struct now.

What I mean by this is build flags should be compiler.flags + compiler.gcc.flags or compiler.flags + compiler.clang.flags depending on the backend being used.

At the moment it only uses compiler.flags.

DvvCz commented 3 months ago

Might just be better to only respect one compiler backend configuration at a time, depending on which is provided.

So if compiler.gcc.flags is provided with gcc backend, it'll use those, otherwise it'll default to compiler.flags.