Skip to content

Commit

Permalink
Update libuv to v2-1.48.0 (#8081)
Browse files Browse the repository at this point in the history
* [LibUV] Use GCC 5 for stdatomic.h
* [LibUV] Use LLVMCompilerRT v13
* [LibUV] Match LLVM and LLVMCompilerRT versions

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
vtjnash and giordano authored Feb 9, 2024
1 parent 6665f37 commit fb1f971
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions L/LibUV/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using BinaryBuilder
using Pkg
using BinaryBuilderBase: sanitize

name = "LibUV"
version = v"2"

# Collection of sources required to build libuv
sources = [
GitSource("https://github.com/JuliaLang/libuv.git",
"2723e256e952be0b015b3c0086f717c3d365d97e"),
"afa1c67fa496eb49ade1e520f76fd018a1409eaa"),
]

# Bash recipe for building across all platforms
Expand Down Expand Up @@ -39,13 +41,16 @@ products = [
LibraryProduct("libuv", :libuv),
]

llvm_version = v"13.0.1"

# Dependencies that must be installed before this package can be built
dependencies = [
BuildDependency("LLVMCompilerRT_jll"; platforms=[Platform("x86_64", "linux"; sanitize="memory")]),
BuildDependency(PackageSpec(; name="LLVMCompilerRT_jll", uuid="4e17d02c-6bf5-513e-be62-445f41c75a11", version=llvm_version); platforms=filter(p -> sanitize(p)=="memory", platforms)),
]

# Note: we explicitly lie about this because we don't have the new
# versioning APIs worked out in BB yet.
version = v"2.0.1"
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")

build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
# We need GCC 4.9+ for stdatomic.h
julia_compat="1.6", preferred_gcc_version=v"5", preferred_llvm_version=llvm_version)

0 comments on commit fb1f971

Please sign in to comment.