From 336afbbb600ca542606f9acb2f37147e9c21825a Mon Sep 17 00:00:00 2001 From: Rakesh Roy Date: Thu, 2 May 2024 14:27:25 +0530 Subject: [PATCH] SWDEV-459556 - Revert "SWDEV-442724 - Remove uses of `-amdgpu-early-inline-all` to enable function calls" This reverts commit 96f17de4a688ce34eb25d5c61bf2dd1e176651ba. Change-Id: I3800c34c3c8211818cddc22918190081fadc7a5a [ROCm/hip commit: 7cef8f916cbf88617fd71c2090e6b660b74fe64b] --- projects/hip/hip-lang-config.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/hip/hip-lang-config.cmake.in b/projects/hip/hip-lang-config.cmake.in index 0c31ef70c5..3c5288c076 100644 --- a/projects/hip/hip-lang-config.cmake.in +++ b/projects/hip/hip-lang-config.cmake.in @@ -83,6 +83,10 @@ set_target_properties(hip-lang::device PROPERTIES INTERFACE_COMPILE_DEFINITIONS "$<$:__HIP_ROCclr__=1>" ) +set_property(TARGET hip-lang::device APPEND PROPERTY + INTERFACE_COMPILE_OPTIONS "$<$:SHELL:-mllvm=-amdgpu-early-inline-all=true;-mllvm=-amdgpu-function-calls=false>" +) + set_property(TARGET hip-lang::device APPEND PROPERTY INTERFACE_LINK_OPTIONS "$<$:--hip-link>" )