Changeset 2788 for trunk/src/kmk/read.c


Ignore:
Timestamp:
Sep 6, 2015, 5:43:10 PM (10 years ago)
Author:
bird
Message:

kmk_cc_exec.c: Sketched the basic makefile evaluation 'instructions'.

File:
1 edited

Legend:

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

    r2770 r2788  
    500500  do_variable_definition (&ebuf.floc, "MAKEFILE_LIST", filename, o_file,
    501501                          f_append, 0);
     502
     503#ifdef CONFIG_WITH_COMPILER
     504  /* Execute compiled version if repeatedly evaluating this file.
     505     ASSUMES file content is unmodified since compilation. */
     506  deps->file->eval_count++;
     507  if (   deps->file->evalprog
     508      || (   deps->file->eval_count == 3
     509          && (deps->file->evalprog = kmk_cc_compile_file_for_eval (ebuf.fp, filename)) != NULL) )
     510    {
     511      curfile = reading_file;
     512      reading_file = &ebuf.floc;
     513
     514      kmk_exec_eval_file (deps->file->evalprog);
     515
     516      reading_file = curfile;
     517      fclose (ebuf.fp);
     518      alloca (0);
     519      return 1;
     520    }
     521#elif defined (CONFIG_WITH_MAKE_STATS)
     522  deps->file->eval_count++;
     523#endif
    502524
    503525#ifdef KMK
Note: See TracChangeset for help on using the changeset viewer.