mirror of
https://github.com/Relintai/osxcross.git
synced 2025-03-09 07:46:59 +01:00
Revert "Check if the arguments have spaces in them and add back the quotes argv"
This reverts commit cb8e8a4579
.
This commit is contained in:
parent
cb8e8a4579
commit
5ea5ea0e46
@ -289,14 +289,7 @@ bool parse(int argc, char **argv, Target &target) {
|
|||||||
char *arg = argv[i];
|
char *arg = argv[i];
|
||||||
|
|
||||||
if (*arg != '-') {
|
if (*arg != '-') {
|
||||||
// Check if the argument has spaces, we need to add back the quotes if
|
target.args.push_back(arg);
|
||||||
// that's the case
|
|
||||||
std::string argument = arg;
|
|
||||||
if (argument.find_first_of("\t\n ") != std::string::npos) {
|
|
||||||
argument = "\"" + argument + "\"";
|
|
||||||
}
|
|
||||||
|
|
||||||
target.args.push_back(argument);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user