Ignore:
Timestamp:
Sep 21, 2008, 3:05:36 AM (17 years ago)
Author:
bird
Message:

kmk: moved eval_include_dep into incdep.c (was in read.c) and implemented background file reading. 'includedep-queue' and 'includedep-flush' are new directives, which along with 'includedep', all take a list of dependency files (used to only take a single file).

File:
1 edited

Legend:

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

    r1792 r1797  
    17041704     * was undefined and footer.kmk always passed an empty string.
    17051705     *
    1706      * Version 2, implemented in r1792, will delay the inclusion of the the
    1707      * dependency file till the end of footer.kmk using _DEPFILES.
     1706     * Version 2, as implemented in r1796, will make use of the async
     1707     * includedep queue feature. This means the files will be read by one or
     1708     * more background threads, leaving the eval'ing to be done later on by
     1709     * the main thread (in snap_deps).
    17081710     */
    17091711    if (!argv[0][0])
     
    17691771    if (!s_fNoCompileCmdsDepsDefined)
    17701772    {
    1771 
    1772         if (iVer >= 2)
    1773             do_variable_definition(NILF, "_DEPFILES", pDep->value, o_file, f_append, 0 /* !target_var */);
    1774         else
    1775         {
    1776             do_variable_definition(NILF, "_DEPFILES_INCLUDED", pDep->value, o_file, f_append, 0 /* !target_var */);
    1777             eval_include_dep(pDep->value, NILF);
    1778         }
     1773        do_variable_definition(NILF, "_DEPFILES_INCLUDED", pDep->value, o_file, f_append, 0 /* !target_var */);
     1774        eval_include_dep(pDep->value, NILF, iVer >= 2 ? incdep_queue : incdep_read_it);
    17791775    }
    17801776
Note: See TracChangeset for help on using the changeset viewer.