aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/mhmakefileparser.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-10-18 06:31:05 +0000
committermarha <marha@users.sourceforge.net>2010-10-18 06:31:05 +0000
commitf7b6403a13075049d9577e6f061b6d7f718d3ca9 (patch)
treecef844b3c6e57e872e50668df5d62fa03effd028 /tools/mhmake/src/mhmakefileparser.cpp
parent057471268f10a87f27bda540049c83efcde43689 (diff)
downloadvcxsrv-f7b6403a13075049d9577e6f061b6d7f718d3ca9.tar.gz
vcxsrv-f7b6403a13075049d9577e6f061b6d7f718d3ca9.tar.bz2
vcxsrv-f7b6403a13075049d9577e6f061b6d7f718d3ca9.zip
Also rebuild everything if one of the exported variables is changed
Diffstat (limited to 'tools/mhmake/src/mhmakefileparser.cpp')
-rw-r--r--tools/mhmake/src/mhmakefileparser.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/mhmake/src/mhmakefileparser.cpp b/tools/mhmake/src/mhmakefileparser.cpp
index 5236d58ee..8c75f78f7 100644
--- a/tools/mhmake/src/mhmakefileparser.cpp
+++ b/tools/mhmake/src/mhmakefileparser.cpp
@@ -918,6 +918,7 @@ bool mhmakefileparser::SkipHeaderFile(const string &FileName)
///////////////////////////////////////////////////////////////////////////////
void mhmakefileparser::SetExport(const string &Var, const string &Val)
{
+ m_Exports.insert(Var);
#ifdef WIN32
if (!m_pEnv)
{
@@ -1170,6 +1171,20 @@ void mhmakefileparser::CreateUSED_ENVVARS()
It++;
}
+ It=m_Exports.begin();
+ ItEnd=m_Exports.end();
+
+ while (It!=ItEnd)
+ {
+ string Var=*It;
+ if (!SkipVar(Var))
+ {
+ transform(Var.begin(),Var.end(),Var.begin(),(int(__CDECL *)(int))toupper);
+ Variables.insert(Var);
+ }
+ It++;
+ }
+
map<string,string>::const_iterator CLItEnd=loadedmakefile::sm_Statics.m_GlobalCommandLineVars.end();
map<string,string>::const_iterator CLIt=loadedmakefile::sm_Statics.m_GlobalCommandLineVars.begin();
while (CLIt!=CLItEnd)