From d9f59b18f82f1570d5ee4d650c7d95ccbab4d5bd Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Thu, 28 Feb 2019 11:21:47 -0500 Subject: [PATCH] Revert "hipcc should consume -mcode-object-v3 flag" This reverts commit 1a8b50e63c8aadd2293a931c7071d983881b854c. [ROCm/hip commit: e8556388f9acfe8103576e8e120cac45315ef005] --- projects/hip/bin/hipcc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index d6eea8457b..d227eea267 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -320,7 +320,6 @@ my $runCmd = 1; my $buildDeps = 0; my $linkType = 1; my $setLinkType = 0; -my $useCodeObjectV3 = 0; my @options = (); my @inputs = (); @@ -424,10 +423,6 @@ foreach $arg (@ARGV) $swallowArg = 1; } - if (($trimarg eq '-mcode-object-v3') and ($HIP_PLATFORM eq 'clang') ) { - $useCodeObjectV3 = 1; - } - if (($arg =~ /--genco/) and $HIP_PLATFORM eq 'clang' ) { $arg = "--cuda-device-only"; } @@ -761,12 +756,6 @@ if ($buildDeps and $HIP_PLATFORM eq 'clang') { $HIPCXXFLAGS .= " --cuda-host-only"; } -if ($useCodeObjectV3 and $HIP_PLATFORM eq 'clang') { - $HIPCXXFLAGS .= " -mcode-object-v3"; -} else { - $HIPCXXFLAGS .= " -mno-code-object-v3"; -} - # Add --hip-link only if there are no source files. if (!$needCXXFLAGS and $HIP_PLATFORM eq 'clang') { $HIPLDFLAGS .= " --hip-link";