From 3a57510fbbf68f3cfd970c4b849445bf14438f07 Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Tue, 19 Feb 2019 17:02:27 +0000 Subject: [PATCH] Consume the code obj args to prevent duplicates --- hipamd/bin/hipcc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index b649bb6e7f..4c6a5ded07 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -424,8 +424,14 @@ foreach $arg (@ARGV) $swallowArg = 1; } + if (($trimarg eq '-mno-code-object-v3') and ($HIP_PLATFORM eq 'clang') ) { + $useCodeObjectV3 = 0; + $swallowArg = 1; + } + if (($trimarg eq '-mcode-object-v3') and ($HIP_PLATFORM eq 'clang') ) { $useCodeObjectV3 = 1; + $swallowArg = 1; } if (($arg =~ /--genco/) and $HIP_PLATFORM eq 'clang' ) {