diff options
author | Fan, ZhijuX <zhijux.fan@intel.com> | 2020-02-12 17:59:05 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-02-13 03:42:36 +0000 |
commit | 422bf2725bca08fb13bbd264a4eb2d1a79695250 (patch) | |
tree | 9e2dba41dfcf0bb6cca550a356796b7e48e3e91a | |
parent | 02b7b861b18afd1744f462878060abda38eccb44 (diff) | |
download | edk2-422bf2725bca08fb13bbd264a4eb2d1a79695250.zip edk2-422bf2725bca08fb13bbd264a4eb2d1a79695250.tar.gz edk2-422bf2725bca08fb13bbd264a4eb2d1a79695250.tar.bz2 |
BaseTools:build failure in CLANGPDB tool chain
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>
-rw-r--r-- | BaseTools/Source/Python/AutoGen/IncludesAutoGen.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py index ca9e02d..0a63142 100644 --- a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py @@ -111,6 +111,8 @@ class IncludesAutoGen(): continue
dependency_file = item.strip(" \\\n")
dependency_file = dependency_file.strip('''"''')
+ if dependency_file == '':
+ continue
if os.path.normpath(dependency_file +".deps") == abspath:
continue
filename = os.path.basename(dependency_file).strip()
|