mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
waifulib: strip_on_install: don't strip on PE and unknown binaries [ci skip]
This commit is contained in:
parent
43575b485d
commit
af0046f401
@ -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…
x
Reference in New Issue
Block a user