| ... | @@ -411,7 +411,8 @@ pub fn buildLibCXXABI(comp: *Compilation, prog_node: *std.Progress.Node) !void { | ... | @@ -411,7 +411,8 @@ pub fn buildLibCXXABI(comp: *Compilation, prog_node: *std.Progress.Node) !void { |
| 411 | try cflags.append("-D_LIBCXXABI_HAS_NO_THREADS"); | 411 | try cflags.append("-D_LIBCXXABI_HAS_NO_THREADS"); |
| 412 | try cflags.append("-D_LIBCPP_HAS_NO_THREADS"); | 412 | try cflags.append("-D_LIBCPP_HAS_NO_THREADS"); |
| 413 | } else if (target.abi.isGnu()) { | 413 | } else if (target.abi.isGnu()) { |
| 414 | try cflags.append("-DHAVE___CXA_THREAD_ATEXIT_IMPL"); | 414 | if (target.os.tag != .linux or !(target.os.version_range.linux.glibc.order(.{ .major = 2, .minor = 18, .patch = 0 }) == .lt)) |
| | 415 | try cflags.append("-DHAVE___CXA_THREAD_ATEXIT_IMPL"); |
| 415 | } | 416 | } |
| 416 | | 417 | |
| 417 | try cflags.append("-D_LIBCPP_DISABLE_EXTERN_TEMPLATE"); | 418 | try cflags.append("-D_LIBCPP_DISABLE_EXTERN_TEMPLATE"); |