Fix non-chroot target env call.
This commit is contained in:
parent
42e465aa10
commit
d8818e0280
@ -143,13 +143,14 @@ System::targetEnvOutput( const QStringList& args,
|
||||
|
||||
program = "chroot";
|
||||
arguments = QStringList( { destDir } );
|
||||
arguments << args;
|
||||
}
|
||||
else
|
||||
{
|
||||
program = "sh";
|
||||
arguments = QStringList( { "-c" } );
|
||||
arguments << QString( "\"%1\"" ).arg( args.join( ' ' ) );
|
||||
}
|
||||
arguments << args;
|
||||
|
||||
process.setProgram( program );
|
||||
process.setArguments( arguments );
|
||||
|
Loading…
Reference in New Issue
Block a user