Commit 3ab0d8e
committed
Remove libclang_rt.osx.a link workaround
This was fixing alexcrichton#279.
All current usage of __builtin_available(...) in curl detects for APIs
older than macOS 10.12, which is Rust's currently minimum supported
version. This means that they are no-ops, and thus no longer emit a
symbol that we need to link.
Additionally, Rust's `std` has recently introduced these symbols in its
standard library, see rust-lang/rust#138944.
This means that even if curl _were_ to start using __builtin_available
with a check for a newer macOS version, it would still successfully link
(at least when using Rust 1.91.0 or newer).
Finally, curl has supported the cfg option HAVE_BUILTIN_AVAILABLE for a
while now, so if there ever does come a point where this starts having
problems again, we can just disable that define.1 parent 8b34786 commit 3ab0d8e
2 files changed
+13
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
| |||
408 | 397 | | |
409 | 398 | | |
410 | 399 | | |
411 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
412 | 404 | | |
413 | 405 | | |
414 | 406 | | |
| |||
576 | 568 | | |
577 | 569 | | |
578 | 570 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
0 commit comments