]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools:build failure in CLANGPDB tool chain
authorFan, ZhijuX <zhijux.fan@intel.com>
Wed, 12 Feb 2020 09:59:05 +0000 (17:59 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Feb 2020 03:42:36 +0000 (03:42 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2520

Incremental build failure in CLANGPDB tool chain on Windows host
The build failure is like below when do incremental build.
The root cause is in generated deps_target file. It has one line ":".

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

index ca9e02d19b4afad82241abb8e15845731cabd22f..0a6314266f45b151705a7010708ccfce0126f5bf 100644 (file)
@@ -111,6 +111,8 @@ class IncludesAutoGen():
                         continue\r
                     dependency_file = item.strip(" \\\n")\r
                     dependency_file = dependency_file.strip('''"''')\r
+                    if dependency_file == '':\r
+                        continue\r
                     if os.path.normpath(dependency_file +".deps") == abspath:\r
                         continue\r
                     filename = os.path.basename(dependency_file).strip()\r