From fcbb9e5945354da93baf9d1795c23e3206c19cd6 Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Mon, 17 Jan 2022 09:03:34 -0500 Subject: [PATCH] Enable the linker build id generation for address sanitizer build The -Wl,--build-id option is added for address sanitizer build Change-Id: I0d75bc8e6169010c460e62e51708828e75de478e [ROCm/amdsmi commit: 7b69dde24f14ffcf0d75e3fe66441a1baf440044] --- projects/amdsmi/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/amdsmi/CMakeLists.txt b/projects/amdsmi/CMakeLists.txt index b779d4ca60..d83f10504b 100755 --- a/projects/amdsmi/CMakeLists.txt +++ b/projects/amdsmi/CMakeLists.txt @@ -74,6 +74,7 @@ set(CMAKE_CXX_FLAGS ## Address Sanitize Flag if (${ADDRESS_SANITIZER}) + set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--build-id") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g") set(CMAKE_EXE_LINKER_FLAGS -fsanitize=address)