diff --git a/src/target.cpp b/src/target.cpp index eace930940..8240023305 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -507,16 +507,16 @@ void get_native_target(ZigTarget *target) { target->abi = target_default_abi(target->arch, target->os); } target->glibc_version = nullptr; -#ifdef ZIG_OS_LINUX if (target_is_glibc(target)) { target->glibc_version = allocate(1); + *target->glibc_version = {2, 17, 0}; +#ifdef ZIG_OS_LINUX Error err; if ((err = glibc_detect_native_version(target->glibc_version))) { - // Use a default version. - *target->glibc_version = {2, 17, 0}; + // Fall back to the default version. } - } #endif + } } Error target_parse_archsub(ZigLLVM_ArchType *out_arch, ZigLLVM_SubArchType *out_sub,