Changeset 1377 in kBuild
- Timestamp:
- Dec 15, 2007 5:46:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r1324 r1377 1753 1753 { 1754 1754 extern char *default_shell; 1755 c har *bin = get_path_kbuild_bin();1755 const char *bin = get_path_kbuild_bin(); 1756 1756 size_t len = strlen (bin); 1757 1757 default_shell = xmalloc (len + sizeof("/kmk_ash.exe")); … … 3309 3309 after reading makefiles which might have done `unexport MAKEFLAGS'. */ 3310 3310 v->export = v_export; 3311 3312 #ifdef KMK 3313 /* Provide simple access to some of the options. */ 3314 { 3315 char val[32]; 3316 sprintf (val, "%u", job_slots); 3317 define_variable ("KMK_OPTS_JOBS", sizeof("KMK_OPTS_JOBS") - 1, 3318 val, o_default, 1); 3319 define_variable ("KMK_OPTS_KEEP_GOING", sizeof("KMK_OPTS_KEEP_GOING") - 1, 3320 keep_going_flag ? "1" : "0", o_default, 1); 3321 define_variable ("KMK_OPTS_JUST_PRINT", sizeof("KMK_OPTS_JUST_PRINT") - 1, 3322 just_print_flag ? "1" : "0", o_default, 1); 3323 define_variable ("KMK_OPTS_PRETTY_COMMAND_PRINTING", sizeof("KMK_OPTS_PRETTY_COMMAND_PRINTING") - 1, 3324 pretty_command_printing ? "1" : "0", o_default, 1); 3325 sprintf (val, "%u", process_priority); 3326 define_variable ("KMK_OPTS_PRORITY", sizeof("KMK_OPTS_PRORITY") - 1, 3327 val, o_default, 1); 3328 sprintf (val, "%u", process_affinity); 3329 define_variable ("KMK_OPTS_AFFINITY", sizeof("KMK_OPTS_AFFINITY") - 1, 3330 val, o_default, 1); 3331 } 3332 #endif 3311 3333 } 3312 3334
Note:
See TracChangeset
for help on using the changeset viewer.