SWDEV-380145 - [GFX][CQE] Mathlibs and Blender build failed in both RT and CPL Jobs

Remove --hip-device-lib-path from hip-config.cmake
and let clang determine device lib path

Change-Id: Ice009875624692bc2895020c9577b94ddbd6840f


[ROCm/clr commit: cbb3937196]
This commit is contained in:
Yaxun (Sam) Liu
2023-02-16 17:34:12 -05:00
کامیت شده توسط Yaxun Liu
والد a9675e0faa
کامیت e660f913b5
@@ -206,16 +206,6 @@ if(HIP_COMPILER STREQUAL "clang")
if (NOT compilePropIsSet)
hip_add_interface_compile_flags(hip::device -x hip)
if (NOT EXISTS ${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode)
# This path is to support an older build of the device library
# TODO: To be removed in the future.
if(WIN32)
hip_add_interface_compile_flags(hip::device -fms-extensions -fms-compatibility)
hip_add_interface_compile_flags(hip::device --hip-device-lib-path=\"${HIP_PATH}/lib/bitcode\")
else()
hip_add_interface_compile_flags(hip::device --hip-device-lib-path=\"${AMD_DEVICE_LIBS_PREFIX}/lib\")
endif()
endif()
endif()
hip_add_interface_link_flags(hip::device --hip-link)