Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Msan build to GMP #5356

Merged
merged 6 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions G/GMP/GMP@6.2.1/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ include("../common.jl")
build_tarballs(ARGS, configure(version)...;
preferred_gcc_version=v"6", julia_compat="1.7")

# Trigger build!
10 changes: 7 additions & 3 deletions G/GMP/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if [[ ${proc_family} == intel ]]; then
flags+=(--enable-fat)
fi

if [[ ${bb_full_target} == *-sanitize+memory* ]]; then
# Install msan runtime (for clang)
cp -rL ${prefix}/lib/linux/* /opt/x86_64-linux-musl/lib/clang/13.0.1/lib/linux/
giordano marked this conversation as resolved.
Show resolved Hide resolved
fi
autoreconf
./configure --prefix=$prefix --build=${MACHTYPE} --host=${target} ${flags[@]}

Expand All @@ -52,15 +56,15 @@ install_license COPYING*

# We enable experimental platforms as this is a core Julia dependency
platforms = expand_cxxstring_abis(supported_platforms(;experimental=true))

# The products that we will ensure are always built
push!(platforms, Platform("x86_64", "linux"; sanitize="memory"))
products = [
LibraryProduct("libgmp", :libgmp),
LibraryProduct("libgmpxx", :libgmpxx),
]

# Dependencies that must be installed before this package can be built
dependencies = Dependency[
dependencies = [
BuildDependency("LLVMCompilerRT_jll",platforms=[Platform("x86_64", "linux"; sanitize="memory")]),
]

return name, version, sources, script, platforms, products, dependencies
Expand Down