| 1 | diff --git a/compiler/rustc_session/src/config/cfg.rs b/compiler/rustc_session/src/config/cfg.rs
|
| 2 | index 84a26af6b54..12ac666574f 100644
|
| 3 | |
| 4 | |
| 5 | @@ -315,6 +315,11 @@ macro_rules! ins_sym {
|
| 6 | ins_none!(sym::target_thread_local);
|
| 7 | }
|
| 8 |
|
| 9 | + if sess.target.vendor_symbol().as_str() == "alpine" {
|
| 10 | + ins_none!(sym::libc_unstable_musl_v1_2); // 0.2.190+
|
| 11 | + ins_none!(sym::libc_unstable_musl_v1_2_3); // 0.2.187-0.2.189
|
| 12 | + }
|
| 13 | +
|
| 14 | ins_sym!(sym::target_vendor, sess.target.vendor_symbol());
|
| 15 |
|
| 16 | // If the user wants a test runner, then add the test cfg.
|
| 17 | diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
|
| 18 | index e533458ab53..ee4276ad332 100644
|
| 19 | |
| 20 | |
| 21 | @@ -1194,6 +1194,8 @@
|
| 22 | lhs,
|
| 23 | lib,
|
| 24 | libc,
|
| 25 | + libc_unstable_musl_v1_2,
|
| 26 | + libc_unstable_musl_v1_2_3,
|
| 27 | lifetime,
|
| 28 | lifetime_capture_rules_2024,
|
| 29 | lifetimes,
|