Lines Matching defs:args
61 std::vector<std::string> args;
65 return args;
75 // Split makeflags into individual args on spaces. Multiple spaces are
81 args.push_back(makeflags.substr(base, found - base));
86 while (args.size() > 0 && args[0].size() == 0) {
87 args.erase(args.begin());
92 if (args.size() > 0 && args[0][0] != '-') {
93 if (args[0].find('=') == makeflags.npos) {
94 args[0] = '-' + args[0];
98 return args;
101 static bool ParseMakeflags(std::vector<std::string>& args,
106 getopt_argv.reserve(args.size() + 1);
108 for (std::string& v : args) {
306 std::vector<char*> args({argv[1]});
324 args.push_back(strdup("-j1"));
326 args.push_back(strdup(jarg.c_str()));
329 args.push_back(strdup("-k0"));
332 args.push_back(strdup(jarg.c_str()));
335 args.insert(args.end(), &argv[2], &argv[argc]);
337 args.push_back(nullptr);
346 int ret = execvp(path, args.data());