From 0e9f6ac717cfb33039cb1465e9f1b9929433f7fc Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Fri, 6 May 2022 22:44:38 +0530 Subject: [PATCH] SWDEV-335125 - to use clang lld-link inplace of dk link or MSVC link (#2671) Change-Id: Iad217e1fe06827ac3a5a6fad4f3fe61a49ff96b7 --- bin/hipcc.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/hipcc.pl b/bin/hipcc.pl index 1ef3a90e30..a2ebb9f330 100755 --- a/bin/hipcc.pl +++ b/bin/hipcc.pl @@ -152,7 +152,10 @@ if ($HIP_PLATFORM eq "amd") { $HIPCC="$HIP_CLANG_PATH/clang" . $execExtension; $HIPLDFLAGS = "--driver-mode=g++"; } - + # to avoid using dk linker or MSVC linker + if($isWindows) { + $HIPLDFLAGS .= " -fuse-ld=lld"; + } $HIP_CLANG_VERSION = `$HIPCC --version`; $HIP_CLANG_VERSION=~/.*clang version (\S+).*/; $HIP_CLANG_VERSION=$1;