From 17a853c277c0c29a9bf41afad0f27e1b59ecdfd8 Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Mon, 11 Feb 2019 17:18:12 +0000 Subject: [PATCH] Change code-object flag to only HIP-Clang [ROCm/hip commit: 1c6365fbe77c4d15b83f08f3a32b7bd3f1ee2640] --- projects/hip/bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index d173d761dd..792d1da59a 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -743,7 +743,7 @@ if ($buildDeps and $HIP_PLATFORM eq 'clang') { if ($useCodeObjectV3 and $HIP_PLATFORM eq 'clang') { $HIPCXXFLAGS .= " -mcode-object-v3"; -} else { +} elsif ($HIP_PLATFORM eq 'clang') { $HIPCXXFLAGS .= " -mno-code-object-v3"; }