ENH: Improve stdlib-handling (original) (raw)

Checklist

What is the idea?

#4999 added the {{ stdlib("c") }} function, and I'm working on rolling this out across conda-forge (chiefly in regro/cf-scripts#2135). However, I hit a road-block when I realized that smithy cannot rerender recipes using that new jinja function, in the sense that the configs for the respective CI jobs don't get the right c_stdlib{,_version} keys populated.

This is apparently all coming from conda-build, and so we need to fix it here first.

Why is this needed?

Necessary to satisfy the goals of #4981, and be able to reflect the fact that many packages now have newer requirements on the C-stdlib than the long-running defaults currently still active in conda-forge (both on macos and soon linux too).

What should happen?

Additional Context

No response