Skip to content

Commit 191b35b

Browse files
committed
[hipcc] fix hipconfig -n behavior
The '-n' hipconfig option now prints a newline, instead of printing the full output followed by a newline. This allows us to run something like 'hipconfig -p -n', which will print the path followed by a newline, instead of the path, the full output, and then a newline. The previous 'hipconfig -n' behavior can still be replicated with 'hipconfig -f -n'
1 parent aabd6ca commit 191b35b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

amd/hipcc/src/hipBin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ void HipBin::executeHipConfig(int argc, char* argv[]) {
150150
break;
151151
case check: platformPtrs.at(j)->checkHipconfig();
152152
break;
153-
case newline: platformPtrs.at(j)->printFull();
154-
cout << endl;
153+
case newline: cout << endl;
155154
break;
156155
default:
157156
platformPtrs.at(j)->printUsage();

0 commit comments

Comments
 (0)