diff options
author | marha <marha@users.sourceforge.net> | 2009-12-10 15:49:55 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-12-10 15:49:55 +0000 |
commit | 0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c (patch) | |
tree | bbe20184d5104c1489cb84815f2f27dc4437be08 /tools/mhmake/src/build.cpp | |
parent | 0540eb5a1f795c0f5265d244ec979b8ddfcf3acb (diff) | |
download | vcxsrv-0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c.tar.gz vcxsrv-0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c.tar.bz2 vcxsrv-0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c.zip |
Added 64-bit compilation
Removed autodep optimisation.
Diffstat (limited to 'tools/mhmake/src/build.cpp')
-rw-r--r-- | tools/mhmake/src/build.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp index 67b5bfffb..8e4732c32 100644 --- a/tools/mhmake/src/build.cpp +++ b/tools/mhmake/src/build.cpp @@ -481,7 +481,7 @@ static bool CopyFile(refptr<fileinfo> pSrc, refptr<fileinfo> pDest) return false;
}
char Buf[4096];
- int Ret;
+ size_t Ret;
while ( (Ret=fread(Buf,1,sizeof(Buf),pSrcFile)) > 0)
{
@@ -602,7 +602,7 @@ exit: static bool EchoCommand(const string &Params)
{
// Find the first > character
- int Pos=Params.find_first_of('>');
+ size_t Pos=Params.find_first_of('>');
if (Pos==string::npos)
{
// Just echo it
@@ -651,7 +651,7 @@ static bool CopyFiles(const string &Params) SplitToItems(Params,Files);
- int NrSrcs=Files.size()-1;
+ size_t NrSrcs=Files.size()-1;
if (NrSrcs<1)
{
@@ -666,7 +666,7 @@ static bool CopyFiles(const string &Params) return false;
}
- for (int i=0; i<NrSrcs; i++)
+ for (size_t i=0; i<NrSrcs; i++)
{
refptr<fileinfo> pSrc=Files[i];
@@ -914,9 +914,9 @@ string mhmakefileparser::GetFullCommand(string Command) }
if (!bBuild)
{
- deps_t Autodeps;
+ set< refptr<fileinfo> > Autodeps;
GetAutoDeps(pPyFile, Autodeps);
- deps_t::iterator It=Autodeps.begin();
+ set< refptr<fileinfo> >::iterator It=Autodeps.begin();
while (It!=Autodeps.end())
{
if (pExeFile->GetDate().IsOlder((*It)->GetDate()))
@@ -1074,7 +1074,7 @@ bool OsExeCommand(const string &Command,const string &Params,bool IgnoreError,st CloseHandle(ProcessInfo.hThread);
char Buf[256];
- int Nbr;
+ size_t Nbr;
while ( (Nbr=fread(Buf,1,sizeof(Buf)-1,pStdOut)) > 0)
{
if (pOutput)
@@ -1679,6 +1679,7 @@ mh_time_t mhmakefileparser::BuildTarget(const refptr<fileinfo> &Target,bool bChe Target->SetCommandsMd5_32(Md5_32); /* If the rule of the target was added with an implicit rule the targets in the rule is empty */
pMakefile->AddTarget(Target);
+ pMakefile->m_AutoDepsDirty=true;
pRule->SetTargetsIsBuild(Md5_32);
break;
}
@@ -1689,7 +1690,7 @@ mh_time_t mhmakefileparser::BuildTarget(const refptr<fileinfo> &Target,bool bChe // Only rebuild if it is not yet rebuild in this current run. This may happen for implicit rules that have multiple targets (implicit rules that build more then one target at the same time
Target->SetCommandsMd5_32(Md5_32);
pMakefile->AddTarget(Target);
- m_AutoDepsDirty=true; /* We need to update the autodeps file if the md5 has been changed */
+ pMakefile->m_AutoDepsDirty=true; /* We need to update the autodeps file if the md5 has been changed */
break;
}
else
|