summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-10-25 20:32:54 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-10-27 23:23:07 +0530
commit2803becf86ac54d45e6f7f3c23cf57905ed905d7 (patch)
treea4baedb26d88fcfda5e545b296aabd1c9a6745f2
parent528c8cdb14021668291ca4417ab4fbd0709dc46d (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.py2
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]),