Commit df65616
build: Don't warn when enabling opting into musl 1.2 via multiple ways
In Alpine, we have to set both the old and new `cfg` *and* the
environment variable since various versions of libc are being used by
packaged software.
This will then emit the warnings about the options being deprecated,
even though we fully intentionally set them. I believe the primary
purpose of the warnings is to tell people to migrate to the new `cfg`,
so we can just not print a warning if musl 1.2 is being opted into via
a different way (and the `cfg` or env var has no effect) already.1 parent c610b5f commit df65616
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
0 commit comments