VirtualBox

Changeset 369 in kBuild


Ignore:
Timestamp:
Dec 17, 2005 11:01:29 PM (19 years ago)
Author:
bird
Message:

Win32 batch hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/job.c

    r364 r369  
    10161016     actual line, after expansion.  */
    10171017  child->file->cmds->lines_flags[child->command_line - 1]
     1018#ifdef CONFIG_WITH_KMK_BUILTIN
     1019    |= flags & (COMMANDS_RECURSE | COMMANDS_BUILTIN);
     1020#else
    10181021    |= flags & COMMANDS_RECURSE;
     1022#endif
    10191023
    10201024  /* Figure out an argument list from this command line.  */
     
    32043208    warn_undefined_variables_flag = save;
    32053209  }
    3206 
     3210#if defined(CONFIG_WITH_KMK_BUILTIN) && defined(WINDOWS32)
     3211  if (!strncmp(line, "kmk_builtin_", sizeof("kmk_builtin_") - 1))
     3212  {
     3213    int saved_batch_mode_shell = batch_mode_shell;
     3214    int saved_no_default_sh_exe = no_default_sh_exe;
     3215    int saved_unixy_shell = unixy_shell;
     3216    unixy_shell = 1;
     3217    batch_mode_shell = 0;
     3218    no_default_sh_exe = 0;
     3219    argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr);
     3220    no_default_sh_exe = saved_no_default_sh_exe;
     3221    batch_mode_shell = saved_batch_mode_shell;
     3222    unixy_shell = saved_unixy_shell;
     3223  }
     3224  else
     3225#endif
    32073226  argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr);
    32083227
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette