forked from qt-creator/qt-creator
Deploy: Use objdump for MinGW build
Change-Id: Icb22aaecf3ca010b49d04af2ead7fb627a40c1db Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -110,12 +110,14 @@ def is_debug(fpath):
|
|||||||
# bootstrap exception
|
# bootstrap exception
|
||||||
if coredebug.search(fpath):
|
if coredebug.search(fpath):
|
||||||
return True
|
return True
|
||||||
try:
|
# try to use dumpbin (MSVC) or objdump (MinGW), otherwise ship all .dlls
|
||||||
|
if which('dumpbin'):
|
||||||
output = subprocess.check_output(['dumpbin', '/imports', fpath])
|
output = subprocess.check_output(['dumpbin', '/imports', fpath])
|
||||||
return coredebug.search(output.decode(encoding)) != None
|
elif which('objdump'):
|
||||||
except OSError:
|
output = subprocess.check_output(['objdump', '-p', fpath])
|
||||||
# dumpbin is not there, maybe MinGW ? Just ship all .dlls.
|
else:
|
||||||
return debug_build
|
return debug_build
|
||||||
|
return coredebug.search(output.decode(encoding)) != None
|
||||||
|
|
||||||
def is_ignored_windows_file(use_debug, basepath, filename):
|
def is_ignored_windows_file(use_debug, basepath, filename):
|
||||||
ignore_patterns = ['.lib', '.pdb', '.exp', '.ilk']
|
ignore_patterns = ['.lib', '.pdb', '.exp', '.ilk']
|
||||||
|
Reference in New Issue
Block a user