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"; }