From 3a82c2eb3a543f78503d7f3997036b5fb6beabdd Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 25 May 2018 19:54:34 -0600 Subject: [PATCH] travis: only warn about missing dll (MinGW) --- .travis/linux-mingw/scan_dll.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis/linux-mingw/scan_dll.py b/.travis/linux-mingw/scan_dll.py index 2f4c92769d..163183f2e3 100755 --- a/.travis/linux-mingw/scan_dll.py +++ b/.travis/linux-mingw/scan_dll.py @@ -16,6 +16,8 @@ DLL_PATH = [ '/usr/lib/gcc/x86_64-w64-mingw32/7.3-posix/' ] +missing = [] + def parse_imports(file_name): results = [] @@ -56,7 +58,8 @@ def parse_imports_recursive(file_name, path_list=[]): # find the requested dll in the provided paths full_path = find_dll(dep) if not full_path: - raise Exception('Cannot find %s!' % dep) + missing.append(dep) + continue full_list.append(dep) q.put(full_path) path_list.append(full_path) @@ -94,6 +97,9 @@ def main(): return 1 print('Scanning dependencies...') deploy(to_deploy, tgt_dir) + if missing: + print('Following DLLs are not found: %s' % ('\n'.join(missing))) + return 0 if __name__ == '__main__':