VirtualBox

Changeset 1611 in kBuild


Ignore:
Timestamp:
May 9, 2008 1:23:23 AM (17 years ago)
Author:
bird
Message:

Fixed a cleanup problem where yasm and vcc* and stuch would leave additional output behind.

File:
1 edited

Legend:

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

    r1503 r1611  
    279279                else
    280280                  strcpy(pszTmp2, ".");
    281    
     281
    282282                if (!my_abspath(pszTmp2, szTmpPath))
    283283                    fatal(NILF, _("failed to determin KBUILD_BIN_PATH (pszTmp2=%s szTmpPath=%s)"), pszTmp2, szTmpPath);
     
    16861686    struct variable *pOutBase   = kbuild_get_object_base(pTarget, pSource, "outbase");
    16871687    struct variable *pObjSuff   = kbuild_get_object_suffix(pTarget, pSource, pTool, pType, pBldTrg, pBldTrgArch, "objsuff");
    1688     struct variable *pDefs, *pIncs, *pFlags, *pDeps, *pOrderDeps, *pDirDep, *pDep, *pVar, *pOutput;
     1688    struct variable *pDefs, *pIncs, *pFlags, *pDeps, *pOrderDeps, *pDirDep, *pDep, *pVar, *pOutput, *pOutputMaybe;
    16891689    struct variable *pObj       = kbuild_set_object_name_and_dep_and_dirdep_and_PATH_target_source(pTarget, pSource, pOutBase, pObjSuff, "obj", &pDep, &pDirDep);
    16901690    char *pszDstVar, *pszDst, *pszSrcVar, *pszSrc, *pszVal, *psz;
     
    17711771    memcpy(pszDst, "_OUTPUT_MAYBE_", sizeof("_OUTPUT_MAYBE_"));
    17721772    pVar = kbuild_query_recursive_variable(pszSrcVar);
    1773     pOutput = do_variable_definition(NILF, pszDstVar, pVar ? pVar->value : "", o_file, f_simple, 0 /* !target_var */);
     1773    pOutputMaybe = do_variable_definition(NILF, pszDstVar, pVar ? pVar->value : "", o_file, f_simple, 0 /* !target_var */);
    17741774
    17751775    memcpy(pszSrc, "_DEPEND", sizeof("_DEPEND"));
     
    17981798
    17991799    /*
    1800     _OUT_FILES      += $($(target)_$(source)_OUTPUT_)
     1800    _OUT_FILES      += $($(target)_$(source)_OUTPUT_) $($(target)_$(source)_OUTPUT_MAYBE_)
    18011801    */
    18021802    pVar = kbuild_get_variable("_OUT_FILES");
    1803     psz = pszVal = xmalloc(pVar->value_length + 1 + pOutput->value_length + 1);
     1803    psz = pszVal = xmalloc(pVar->value_length + 1 + pOutput->value_length + 1 + pOutputMaybe->value_length + 1);
    18041804    memcpy(psz, pVar->value, pVar->value_length); psz += pVar->value_length;
    18051805    *psz++ = ' ';
    1806     memcpy(psz, pOutput->value, pOutput->value_length + 1);
     1806    memcpy(psz, pOutput->value, pOutput->value_length); psz += pOutput->value_length;
     1807    *psz++ = ' ';
     1808    memcpy(psz, pOutputMaybe->value, pOutputMaybe->value_length + 1);
    18071809    do_variable_definition(NILF, "_OUT_FILES", pszVal, o_file, f_simple, 0 /* !target_var */);
    18081810    free(pszVal);
Note: See TracChangeset for help on using the changeset viewer.

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