mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix a bug for single module build with GenC/GenMake option
when build a single module with GenC/GenMake option, currently it will direct return after create Autogen code files, then it cause MaList is empty, which cause an incorrect error message is reported. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
5e9256cd7f
commit
b8c6c54538
|
@ -1837,13 +1837,8 @@ class Build():
|
|||
# for target which must generate AutoGen code and makefile
|
||||
if not self.SkipAutoGen or self.Target == 'genc':
|
||||
Ma.CreateCodeFile(True)
|
||||
if self.Target == "genc":
|
||||
continue
|
||||
|
||||
if not self.SkipAutoGen or self.Target == 'genmake':
|
||||
Ma.CreateMakeFile(True)
|
||||
if self.Target == "genmake":
|
||||
continue
|
||||
MaList.append(Ma)
|
||||
self.BuildModules.append(Ma)
|
||||
self.AutoGenTime += int(round((time.time() - AutoGenStart)))
|
||||
|
|
Loading…
Reference in New Issue