Changeset 1792 in kBuild
- Timestamp:
- Sep 19, 2008 11:30:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kbuild.c
r1725 r1792 1698 1698 size_t cch; 1699 1699 struct kbuild_sdks Sdks; 1700 int iVer; 1701 1702 /* 1703 * argv[0] is the function version. Prior to r1792 (early 0.1.5) this 1704 * was undefined and footer.kmk always passed an empty string. 1705 * 1706 * Version 2, implemented in r1792, will delay the inclusion of the the 1707 * dependency file till the end of footer.kmk using _DEPFILES. 1708 */ 1709 if (!argv[0][0]) 1710 iVer = 0; 1711 else 1712 switch (argv[0][0] | (argv[0][1] << 8)) 1713 { 1714 case '2': iVer = 2; break; 1715 case '3': iVer = 3; break; 1716 case '4': iVer = 4; break; 1717 case '5': iVer = 5; break; 1718 case '6': iVer = 6; break; 1719 case '7': iVer = 7; break; 1720 case '8': iVer = 8; break; 1721 case '9': iVer = 9; break; 1722 case '0': iVer = 0; break; 1723 case '1': iVer = 1; break; 1724 default: 1725 iVer = 0; 1726 psz = argv[0]; 1727 while (isblank((unsigned char)*psz)) 1728 psz++; 1729 if (*psz) 1730 iVer = atoi(psz); 1731 break; 1732 } 1700 1733 1701 1734 /* … … 1736 1769 if (!s_fNoCompileCmdsDepsDefined) 1737 1770 { 1738 do_variable_definition(NILF, "_DEPFILES_INCLUDED", pDep->value, o_file, f_append, 0 /* !target_var */); 1739 eval_include_dep(pDep->value, NILF); 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 } 1740 1779 } 1741 1780 … … 1835 1874 kbuild_put_sdks(&Sdks); 1836 1875 (void)pszFuncName; 1837 (void)argv;1838 1876 return variable_buffer_output(o, "", 1); 1839 1877 }
Note:
See TracChangeset
for help on using the changeset viewer.