Skip to content

Commit

Permalink
Add rocm-core-asan dependency for ASAN builds (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Jul 11, 2023
1 parent 81e6411 commit 15cbb2e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions share/rocm/cmake/ROCMCreatePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,15 @@ macro(rocm_package_add_rocm_core_dependency)
# This mainly empty package exists to allow all of rocm
# to be removed in one step by removing rocm-core
if(ROCM_DEP_ROCMCORE)
rocm_join_if_set(", " CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core")
rocm_join_if_set(", " CPACK_RPM_PACKAGE_REQUIRES "rocm-core")
if(ENABLE_ASAN_PACKAGING)
# For ASAN packages, add dependency to rocm-core-asan
set(_rocm_core_pkg "rocm-core-asan")
else()
set(_rocm_core_pkg "rocm-core")
endif()
rocm_join_if_set(", " CPACK_DEBIAN_PACKAGE_DEPENDS ${_rocm_core_pkg})
rocm_join_if_set(", " CPACK_RPM_PACKAGE_REQUIRES ${_rocm_core_pkg})
unset(_rocm_core_pkg)
endif()
endmacro()

Expand Down

0 comments on commit 15cbb2e

Please sign in to comment.