diff options
author | marha <marha@users.sourceforge.net> | 2010-10-18 06:31:05 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-10-18 06:31:05 +0000 |
commit | f7b6403a13075049d9577e6f061b6d7f718d3ca9 (patch) | |
tree | cef844b3c6e57e872e50668df5d62fa03effd028 /tools/mhmake/src/mhmakefileparser.cpp | |
parent | 057471268f10a87f27bda540049c83efcde43689 (diff) | |
download | vcxsrv-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.cpp | 15 |
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)
|