| ... | ... | @@ -507,16 +507,16 @@ void get_native_target(ZigTarget *target) { |
| 507 | 507 | target->abi = target_default_abi(target->arch, target->os); |
| 508 | 508 | } |
| 509 | 509 | target->glibc_version = nullptr; |
| 510 | | #ifdef ZIG_OS_LINUX |
| 511 | 510 | if (target_is_glibc(target)) { |
| 512 | 511 | target->glibc_version = allocate<ZigGLibCVersion>(1); |
| 512 | *target->glibc_version = {2, 17, 0}; |
| 513 | #ifdef ZIG_OS_LINUX |
| 513 | 514 | Error err; |
| 514 | 515 | if ((err = glibc_detect_native_version(target->glibc_version))) { |
| 515 | | // Use a default version. |
| 516 | | *target->glibc_version = {2, 17, 0}; |
| 516 | // Fall back to the default version. |
| 517 | 517 | } |
| 518 | | } |
| 519 | 518 | #endif |
| 519 | } |
| 520 | 520 | } |
| 521 | 521 | |
| 522 | 522 | Error target_parse_archsub(ZigLLVM_ArchType *out_arch, ZigLLVM_SubArchType *out_sub, |