diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-25 20:32:54 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-27 23:23:07 +0530 |
commit | 2803becf86ac54d45e6f7f3c23cf57905ed905d7 (patch) | |
tree | a4baedb26d88fcfda5e545b296aabd1c9a6745f2 | |
parent | 528c8cdb14021668291ca4417ab4fbd0709dc46d (diff) |
cerbero: Skip genlib on error
Don't try to generate an import library if the sanity checks fail
-rw-r--r-- | cerbero/build/recipe.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cerbero/build/recipe.py b/cerbero/build/recipe.py index 685653fc..d6b5806a 100644 --- a/cerbero/build/recipe.py +++ b/cerbero/build/recipe.py @@ -224,8 +224,10 @@ class Recipe(FilesProvider): for (libname, dllpaths) in self.libraries().items(): if len(dllpaths) > 1: m.warning("BUG: Found multiple DLLs for libname {}:\n{}".format(libname, '\n'.join(dllpaths))) + continue if len(dllpaths) == 0: m.warning("Could not create {}.lib, no matching DLLs found".format(libname)) + continue try: implib = genlib.create(libname, os.path.join(self.config.prefix, dllpaths[0]), |