Skip to content

Commit 2eac4e3

Browse files
kanard38knard38
authored andcommitted
DAOS-16501 build: Add libsanitize
Compilation with the Asan lib. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
1 parent 48df263 commit 2eac4e3

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

mercury.spec

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: mercury
22
Version: 2.4.0
3-
Release: 3%{?dist}
3+
Release: 4%{?dist}
44

55
# --without ucx build switch
66
%bcond_without ucx
@@ -34,6 +34,14 @@ BuildRequires: ucx-devel
3434
BuildRequires: json-c-devel
3535
%endif
3636

37+
# Needed for debugging tasks
38+
%if (0%{?rhel} >= 8)
39+
BuildRequires: libasan
40+
%endif
41+
%if (0%{?suse_version} > 0)
42+
BuildRequires: libasan8
43+
%endif
44+
3745
%description
3846
Mercury is a Remote Procedure Call (RPC) framework specifically
3947
designed for use in High-Performance Computing (HPC) systems with
@@ -76,7 +84,7 @@ Mercury plugin to support the UCX transport.
7684

7785
%build
7886
%cmake -DCMAKE_IN_SOURCE_BUILD:BOOL=ON \
79-
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
87+
-DCMAKE_BUILD_TYPE:STRING=Asan \
8088
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
8189
-DBUILD_DOCUMENTATION:BOOL=OFF \
8290
-DBUILD_EXAMPLES:BOOL=OFF \
@@ -132,6 +140,9 @@ Mercury plugin to support the UCX transport.
132140
%{_libdir}/cmake/
133141

134142
%changelog
143+
* Mon Jun 23 2025 cedric Koch-Hofer <cedric.koch-hofer@hpe.com> - 2.4.0-4
144+
- Development build aimed for finding memory leaks at LRZ.
145+
135146
* Wed Jan 15 2025 Joseph Moore <joseph.moore@hpe.com> - 2.4.0-3
136147
- Add patch to na_ucx.c to flush end point prior to close.
137148

0 commit comments

Comments
 (0)