]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools:Fixed build failure when specifying multiple BUILDTARGET
authorFan, ZhijuX <zhijux.fan@intel.com>
Tue, 19 Feb 2019 10:56:03 +0000 (18:56 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 20 Feb 2019 05:16:57 +0000 (13:16 +0800)
commite8d13fef90b9f9a3b3ae72342d67d0e6c5594613
treec3fbc846e520f37371de93c7a89352de73a7cd5a
parent7da3ed89d4e8d5bf053c7eeec348c2b07b41dc53
BaseTools:Fixed build failure when specifying multiple BUILDTARGET

With Python3, the dict.value() method returns an iterator.
If a dictionary is updated while an iterator on its keys is used,
a RuntimeError is generated.
Converting the iterator to a list() forces a copy of the mutable
keys in an immutable list which can be safely iterated.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py