From 7cef8f916cbf88617fd71c2090e6b660b74fe64b 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 da3b2e8ae273c7335a929b4345e376e717b5e1ee. Change-Id: I3800c34c3c8211818cddc22918190081fadc7a5a --- hip-lang-config.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hip-lang-config.cmake.in b/hip-lang-config.cmake.in index 0c31ef70c5..3c5288c076 100644 --- a/hip-lang-config.cmake.in +++ b/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>" )