From 5ea5ea0e46720eebc5c3adfde4bdfc3c493b84e7 Mon Sep 17 00:00:00 2001 From: Pedro Navarro Date: Tue, 30 May 2017 13:53:15 -0700 Subject: [PATCH] Revert "Check if the arguments have spaces in them and add back the quotes argv" This reverts commit cb8e8a45795a4ae24b4b154ebb9182bff3745606. --- wrapper/main.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/wrapper/main.cpp b/wrapper/main.cpp index a8a252e..405fae7 100644 --- a/wrapper/main.cpp +++ b/wrapper/main.cpp @@ -289,14 +289,7 @@ bool parse(int argc, char **argv, Target &target) { char *arg = argv[i]; if (*arg != '-') { - // Check if the argument has spaces, we need to add back the quotes if - // 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); + target.args.push_back(arg); continue; }