From b8af347e8e4a615287b8f04cdcc8480c356cd312 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Wed, 15 May 2024 00:40:48 +0100 Subject: [PATCH] SWDEV-445072 - Disable rocprofiler register for static libs Change-Id: I38f4cc31ea196156aad65ca743787b27c02823ac [ROCm/clr commit: 7d901666b8b4576978b2064806c68832be9fd5fb] --- projects/clr/hipamd/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/CMakeLists.txt b/projects/clr/hipamd/src/CMakeLists.txt index 235f77e8fe..7e0142975f 100644 --- a/projects/clr/hipamd/src/CMakeLists.txt +++ b/projects/clr/hipamd/src/CMakeLists.txt @@ -287,7 +287,7 @@ endif() target_compile_definitions(amdhip64 PUBLIC USE_PROF_API=1) -if(WIN32) +if(WIN32 OR NOT BUILD_SHARED_LIBS) # rocprofiler-register is not support on Windows set(HIP_ENABLE_ROCPROFILER_REGISTER OFF) else()