Home | History | Annotate | Download | only in make

Lines Matching refs:opts

121 CmdOpts opts;
198 if (opts.debug_file != stdout && opts.debug_file != stderr)
199 fclose(opts.debug_file);
208 opts.debug_file = stdout;
212 opts.debug_file = stderr;
224 opts.debug_file = fopen(fname, mode);
225 if (opts.debug_file == NULL) {
236 DebugFlags debug = opts.debug;
283 opts.strict = true;
307 opts.debugVflag = true;
327 opts.debug = debug;
329 setvbuf(opts.debug_file, NULL, _IONBF, 0);
330 if (opts.debug_file != stdout)
408 opts.maxJobs = (int)strtol(arg, &end, 0);
415 d = (opts.maxJobs > 0) ? opts.maxJobs : 1;
423 opts.maxJobs = (int)sysconf(_SC_NPROCESSORS_ONLN);
424 opts.maxJobs = (int)(d * (double)opts.maxJobs);
428 if (*p != '\0' || opts.maxJobs < 1) {
435 snprintf(v, sizeof(v), "%d", opts.maxJobs);
439 maxJobTokens = opts.maxJobs;
466 opts.compatMake = true;
489 opts.noExecute = true;
490 opts.noRecursiveExecute = true;
494 opts.keepgoing = false;
504 opts.printVars = c == 'v' ? PVM_EXPANDED : PVM_UNEXPANDED;
505 Lst_Append(&opts.variables, bmake_strdup(argvalue));
511 opts.parseWarnFatal = true;
515 opts.varNoExportEnv = true;
519 /* If '-d-opts' don't pass to children */
529 opts.checkEnvFirst = true;
533 Lst_Append(&opts.makefiles, bmake_strdup(argvalue));
536 opts.ignoreErrors = true;
543 opts.keepgoing = true;
551 opts.noExecute = true;
555 opts.query = true;
560 opts.noBuiltins = true;
564 opts.silent = true;
568 opts.touch = true;
572 opts.enterFlag = true;
670 Lst_Append(&opts.create, bmake_strdup(argv[1]));
760 if (opts.enterFlag && strcmp(objdir, curdir) != 0)
821 opts.compatMake = true;
829 opts.randomizeTargets = true;
885 if (opts.printVars == PVM_EXPANDED)
887 else if (opts.debugVflag)
893 for (ln = opts.variables.first; ln != NULL; ln = ln->next)
903 if (Lst_IsEmpty(&opts.create))
906 Targ_FindList(&targets, &opts.create);
908 if (!opts.compatMake) {
909 if (!opts.query) {
933 if (Lst_IsEmpty(&opts.create)) {
938 for (ln = opts.create.first; ln != NULL; ln = ln->next) {
1082 opts.compatMake = false;
1083 memset(&opts.debug, 0, sizeof(opts.debug));
1084 /* opts.debug_file has already been initialized earlier */
1085 opts.strict = false;
1086 opts.debugVflag = false;
1087 opts.checkEnvFirst = false;
1088 Lst_Init(&opts.makefiles);
1089 opts.ignoreErrors = false; /* Pay attention to non-zero returns */
1090 opts.maxJobs = 1;
1091 opts.keepgoing = false; /* Stop on error */
1092 opts.noRecursiveExecute = false; /* Execute all .MAKE targets */
1093 opts.noExecute = false; /* Execute all commands */
1094 opts.query = false;
1095 opts.noBuiltins = false; /* Read the built-in rules */
1096 opts.silent = false; /* Print commands as executed */
1097 opts.touch = false;
1098 opts.printVars = PVM_NONE;
1099 Lst_Init(&opts.variables);
1100 opts.parseWarnFatal = false;
1101 opts.enterFlag = false;
1102 opts.varNoExportEnv = false;
1103 Lst_Init(&opts.create);
1203 if (bogusJflag && !opts.compatMake) {
1204 opts.compatMake = true;
1212 if (forceJobs || opts.compatMake ||
1227 if (n != opts.maxJobs) {
1232 opts.maxJobs = n;
1233 maxJobTokens = opts.maxJobs;
1316 opts.debug_file = stderr;
1369 maxJobTokens = opts.maxJobs;
1436 if (opts.enterFlag)
1478 if (!opts.noBuiltins)
1482 if (!Lst_IsEmpty(&opts.makefiles))
1483 ReadAllMakefiles(&opts.makefiles);
1493 if (!opts.noBuiltins || opts.printVars == PVM_NONE) {
1517 if (!opts.compatMake && !forceJobs)
1518 opts.compatMake = true;
1520 if (!opts.compatMake)
1523 tokenPoolReader, tokenPoolWriter, opts.maxJobs, maxJobTokens,
1524 opts.compatMake ? 1 : 0);
1526 if (opts.printVars == PVM_NONE)
1554 if (opts.printVars != PVM_NONE) {
1566 Lst_DoneFree(&opts.variables);
1567 Lst_DoneFree(&opts.makefiles);
1568 Lst_DoneFree(&opts.create);
1578 if (opts.enterFlag)
1604 if ((opts.strict && main_errors > 0) || parseErrors > 0)
1849 f = opts.debug_file;
2090 ln = opts.create.first;