Revert "Check if the arguments have spaces in them and add back the quotes argv"

This reverts commit cb8e8a4579.
This commit is contained in:
Pedro Navarro 2017-05-30 13:53:15 -07:00
parent cb8e8a4579
commit 5ea5ea0e46

View File

@ -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;
} }