libuv: update compiler requirements (#42576)

This commit is contained in:
Julien Cortial 2024-02-12 10:54:10 +01:00 committed by GitHub
parent fbf6db035b
commit 6d68dcf13c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,14 @@ def url_for_version(self, version):
depends_on("libtool", type="build", when="@:1.43.0")
depends_on("m4", type="build", when="@:1.43.0")
conflicts(
"%gcc@:4.8",
when="@1.45:",
msg="libuv version 1.45 and above require <stdatomic.h>. "
"See: https://github.com/libuv/libuv/blob/v1.45.0/ChangeLog#L11"
"and https://gcc.gnu.org/gcc-4.9/changes.html",
)
# Tries to build an Objective-C file with GCC's C frontend
# https://github.com/libuv/libuv/issues/2805
conflicts(