diff --git a/bin/hipcc b/bin/hipcc index 4be1c084fb..c759802e2e 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -383,7 +383,6 @@ if($HIP_PLATFORM eq "nvcc"){ my $toolArgs = ""; # arguments to pass to the hcc or nvcc tool my $optArg = ""; # -O args -my $gArg = ""; # -g args foreach $arg (@ARGV) { @@ -494,10 +493,6 @@ foreach $arg (@ARGV) { $optArg = $arg; } - if($arg =~ m/^-g/) - { - $gArg = $arg; - } ## process linker response file for hip-clang ## extract object files from static library and pass them directly to @@ -876,7 +871,7 @@ if ($needHipHcc) { if ($HIP_PLATFORM eq "clang") { # Set default optimization level to -O3 for hip-clang. - if ($optArg eq "" and $gArg ne "-g") { + if ($optArg eq "") { $HIPCXXFLAGS .= " -O3"; $HIPLDFLAGS .= " -O3"; }