Browse Source

waifulib: strip_on_install: don't strip on PE and unknown binaries [ci skip]

pull/2/head
Alibek Omarov 5 years ago
parent
commit
af0046f401
  1. 3
      scripts/waifulib/strip_on_install.py

3
scripts/waifulib/strip_on_install.py

@ -26,6 +26,9 @@ def copy_fun(self, src, tgt): @@ -26,6 +26,9 @@ def copy_fun(self, src, tgt):
if self.generator.bld.options.no_strip:
return
if conf.env.DEST_BINFMT not in ['elf', 'mac-o']: # don't strip unknown formats or PE
return
if getattr(self.generator, 'link_task', None) and self.generator.link_task.outputs[0] in self.inputs:
cmd = self.env.STRIP + self.env.STRIPFLAGS + [tgt]
try:

Loading…
Cancel
Save