Changeset 521 in kBuild
- Timestamp:
- Sep 16, 2006 6:03:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/job.c
r520 r521 3206 3206 warn_undefined_variables_flag = save; 3207 3207 } 3208 #if defined(CONFIG_WITH_KMK_BUILTIN) && defined(WINDOWS32) 3209 /* On windows we have to avoid batch mode for builtin commands. */ 3210 if (!strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1)) 3208 3209 #ifdef CONFIG_WITH_KMK_BUILTIN 3210 /* If it's a kmk_builtin command, make sure we're treated like a 3211 unix shell and and don't get batch files. */ 3212 if ( ( !unixy_shell 3213 || batch_mode_shell 3214 # ifdef WINDOWS32 3215 || no_default_sh_exe 3216 # endif 3217 ) 3218 && !strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1)) 3211 3219 { 3212 3220 int saved_batch_mode_shell = batch_mode_shell; 3221 int saved_unixy_shell = unixy_shell; 3222 # ifdef WINDOWS32 3213 3223 int saved_no_default_sh_exe = no_default_sh_exe; 3214 int saved_unixy_shell = unixy_shell; 3224 no_default_sh_exe = 0; 3225 # endif 3215 3226 unixy_shell = 1; 3216 3227 batch_mode_shell = 0; 3217 no_default_sh_exe = 0;3218 3228 argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr); 3219 no_default_sh_exe = saved_no_default_sh_exe;3220 3229 batch_mode_shell = saved_batch_mode_shell; 3221 3230 unixy_shell = saved_unixy_shell; 3231 # ifdef WINDOWS32 3232 no_default_sh_exe = saved_no_default_sh_exe; 3233 # endif 3222 3234 } 3223 3235 else 3224 #endif 3236 #endif /* CONFIG_WITH_KMK_BUILTIN */ 3225 3237 argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr); 3226 3238
Note:
See TracChangeset
for help on using the changeset viewer.