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