浏览代码

makepanda: Re-link executables with --static if dependency changed

rdb 1 年之前
父节点
当前提交
60d7d9ec1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      makepanda/makepandacore.py

+ 1 - 1
makepanda/makepandacore.py

@@ -3677,7 +3677,7 @@ def TargetAdd(target, dummy=0, opts=[], input=[], dep=[], ipath=None, winrc=None
         t.inputs.append(fullinput)
         t.inputs.append(fullinput)
         # Don't re-link a library or binary if just its dependency dlls have been altered.
         # Don't re-link a library or binary if just its dependency dlls have been altered.
         # This should work out fine in most cases, and often reduces recompilation time.
         # This should work out fine in most cases, and often reduces recompilation time.
-        if os.path.splitext(x)[-1] not in SUFFIX_DLL:
+        if os.path.splitext(x)[-1] not in SUFFIX_DLL or (GetLinkAllStatic() and target.endswith(".exe")):
             t.deps[fullinput] = 1
             t.deps[fullinput] = 1
             (base,suffix) = os.path.splitext(x)
             (base,suffix) = os.path.splitext(x)
             if SUFFIX_INC.count(suffix):
             if SUFFIX_INC.count(suffix):