Changeset 3194 for trunk/src/kmk/main.c


Ignore:
Timestamp:
Mar 27, 2018, 4:05:17 PM (7 years ago)
Author:
bird
Message:

kmk/win: Windows kmk now defaults to --output-sync=target. Fixed output sync on windows in nested make processes that got busted by winchildren and it's no inheritance policy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r3186 r3194  
    478478  -O[TYPE], --output-sync[=TYPE]\n\
    479479                              Synchronize output of parallel jobs by TYPE.\n"),
     480#elif defined(KBUILD_OS_WINDOWS)
     481    N_("\
     482  -O[TYPE], --output-sync[=TYPE]\n\
     483                              Synchronize output of parallel jobs by TYPE:\n\
     484                                none    = no synchronization.\n\
     485                                line    = receip line output\n\
     486                                target  = entire receip output (default)\n\
     487                                recurse = entire recursive invocation\n"),
    480488#else
    481489    N_("\
     
    730738   of each job stay together.  */
    731739
     740#if defined(KMK) && defined(KBUILD_OS_WINDOWS)
     741int output_sync = OUTPUT_SYNC_TARGET;
     742#else
    732743int output_sync = OUTPUT_SYNC_NONE;
     744#endif
    733745
    734746/* Nonzero if the "--trace" option was given.  */
     
    11121124   command-line argument.  */
    11131125void
     1126# ifdef CONFIG_NEW_WIN_CHILDREN
     1127prepare_mutex_handle_string (const char *mtxname)
     1128{
     1129  if (!sync_mutex)
     1130    {
     1131      sync_mutex = xstrdup(mtxname);
     1132      define_makeflags (1, 0);
     1133    }
     1134}
     1135# else
    11141136prepare_mutex_handle_string (sync_handle_t handle)
    11151137{
     
    11231145    }
    11241146}
     1147# endif
    11251148
    11261149#endif  /* NO_OUTPUT_SYNC */
Note: See TracChangeset for help on using the changeset viewer.