VirtualBox

儲存庫 kBuild 的更動 1751


忽略:
時間撮記:
2008-9-6 上午02:58:38 (16 年 以前)
作者:
bird
訊息:

kmk: Don't bother with secondary target expansion if it's not enabled (you can't turn it off when it's on). In the KMK case we force undefined variable warnings during scondary target expansion because bad stuff may happen if you get this wrong (like file in the root).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/kmk/file.c

    r1701 r1751  
    678678     be re-inserting (delete+insert) hash table entries so we have to use
    679679     hash_dump(). */
    680   file_slot_0 = (struct file **) hash_dump (&files, 0, 0);
    681   file_end = file_slot_0 + files.ht_fill;
    682   for (file_slot = file_slot_0; file_slot < file_end; file_slot++)
    683     for (f = *file_slot; f != 0; f = f->prev)
    684       if (f->need_2nd_target_expansion)
    685         do_2nd_target_expansion (f);
    686   free (file_slot_0);
    687 
    688   /* Disable second target expansion now since we won't expand files
    689      entered after this point. (saves CPU cycles in enter_file()). */
    690   second_target_expansion = 0;
     680  if (second_target_expansion)
     681    {
     682# ifdef KMK /* turn on warnings here. */
     683      int save = warn_undefined_variables_flag;
     684      warn_undefined_variables_flag = 1;
     685# endif
     686
     687      file_slot_0 = (struct file **) hash_dump (&files, 0, 0);
     688      file_end = file_slot_0 + files.ht_fill;
     689      for (file_slot = file_slot_0; file_slot < file_end; file_slot++)
     690        for (f = *file_slot; f != 0; f = f->prev)
     691          if (f->need_2nd_target_expansion)
     692            do_2nd_target_expansion (f);
     693      free (file_slot_0);
     694
     695# ifdef KMK
     696      warn_undefined_variables_flag = save;
     697# endif
     698   
     699      /* Disable second target expansion now since we won't expand files
     700         entered after this point. (saves CPU cycles in enter_file()). */
     701      second_target_expansion = 0;
     702    }
    691703#endif /* CONFIG_WITH_2ND_TARGET_EXPANSION */
    692704
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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