| ... | @@ -2023,7 +2023,12 @@ pub fn requiresLibC(target: *const Target) bool { | ... | @@ -2023,7 +2023,12 @@ pub fn requiresLibC(target: *const Target) bool { |
| 2023 | .serenity, | 2023 | .serenity, |
| 2024 | => true, | 2024 | => true, |
| 2025 | | 2025 | |
| 2026 | .linux | 2026 | // Android API levels prior to 29 did not have native TLS support. For these API levels, TLS |
| | 2027 | // is implemented through calls to `__emutls_get_address`. We provide this function in |
| | 2028 | // compiler-rt, but it's implemented by way of `pthread_key_create` et al, so linking libc |
| | 2029 | // is required. |
| | 2030 | .linux => target.abi.isAndroid() and target.os.version_range.linux.android < 29, |
| | 2031 | |
| 2027 | .windows, | 2032 | .windows, |
| 2028 | .freebsd, | 2033 | .freebsd, |
| 2029 | .netbsd, | 2034 | .netbsd, |