[libc-commits] [libc] [libc][cmake] Respect MinSizeRel optimization flags (PR #233920)

via libc-commits libc-commits at lists.llvm.org
Tue Oct 20 11:57:24 PDT 2026


PiJoules wrote:

Seems like adding a hole here for `MinSizeRel` seems overly specific. I don't think it's documented anywhere, but based off the name, if I'm adding `libc_opt_high_flag` to a target, I would expect it to resolve to whatever the platform-specific "highest opt level" is. I think it's also possible for this change to have `libc_opt_high_flag` be undefined? If the motivation is there's certain targets on certain platforms that are sensitive to size and need to respect the higher level `MinSizeRel`, I would suspect maybe the better fix would be to remove `libc_opt_high_flag` for that configuration?

https://github.com/llvm/llvm-project/pull/233920


More information about the libc-commits mailing list