Sync EDKII BaseTools to BaseTools project r1997
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10680 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -423,7 +423,14 @@ def Main():
|
||||
|
||||
Dpx = DependencyExpression(DxsString, Option.ModuleType, Option.Optimize)
|
||||
if Option.OutputFile != None:
|
||||
Dpx.Generate(Option.OutputFile)
|
||||
FileChangeFlag = Dpx.Generate(Option.OutputFile)
|
||||
if not FileChangeFlag and DxsFile:
|
||||
#
|
||||
# Touch the output file if its time stamp is older than the original
|
||||
# DXS file to avoid re-invoke this tool for the dependency check in build rule.
|
||||
#
|
||||
if os.stat(DxsFile)[8] > os.stat(Option.OutputFile)[8]:
|
||||
os.utime(Option.OutputFile, None)
|
||||
else:
|
||||
Dpx.Generate()
|
||||
except BaseException, X:
|
||||
|
Reference in New Issue
Block a user