Skip to content

Commit 15cbb2e

Browse files
committed
Add rocm-core-asan dependency for ASAN builds (#136)
1 parent 81e6411 commit 15cbb2e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

share/rocm/cmake/ROCMCreatePackage.cmake

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,15 @@ macro(rocm_package_add_rocm_core_dependency)
131131
# This mainly empty package exists to allow all of rocm
132132
# to be removed in one step by removing rocm-core
133133
if(ROCM_DEP_ROCMCORE)
134-
rocm_join_if_set(", " CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core")
135-
rocm_join_if_set(", " CPACK_RPM_PACKAGE_REQUIRES "rocm-core")
134+
if(ENABLE_ASAN_PACKAGING)
135+
# For ASAN packages, add dependency to rocm-core-asan
136+
set(_rocm_core_pkg "rocm-core-asan")
137+
else()
138+
set(_rocm_core_pkg "rocm-core")
139+
endif()
140+
rocm_join_if_set(", " CPACK_DEBIAN_PACKAGE_DEPENDS ${_rocm_core_pkg})
141+
rocm_join_if_set(", " CPACK_RPM_PACKAGE_REQUIRES ${_rocm_core_pkg})
142+
unset(_rocm_core_pkg)
136143
endif()
137144
endmacro()
138145

0 commit comments

Comments
 (0)