mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Pass user only if it's non-empty. Patch by Sandeep.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86c006a971
commit
26964b6dc1
@ -698,8 +698,10 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
|
||||
else {
|
||||
ProgramArgs.push_back(RemoteClientPath.c_str());
|
||||
ProgramArgs.push_back(RemoteHost.c_str());
|
||||
ProgramArgs.push_back("-l");
|
||||
ProgramArgs.push_back(RemoteUser.c_str());
|
||||
if (!RemoteUser.empty()) {
|
||||
ProgramArgs.push_back("-l");
|
||||
ProgramArgs.push_back(RemoteUser.c_str());
|
||||
}
|
||||
if (!RemotePort.empty()) {
|
||||
ProgramArgs.push_back("-p");
|
||||
ProgramArgs.push_back(RemotePort.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user