From 5523af09ce24ea61e4a89756acc9d7bc9c7d727f Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 27 Feb 2018 12:05:23 +0100 Subject: [PATCH] makepanda: rebuild modules when interrogate_module is modified --- makepanda/makepandacore.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 0bce3f4450..81163c8179 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -3419,5 +3419,9 @@ def TargetAdd(target, dummy=0, opts=[], input=[], dep=[], ipath=None, winrc=None t.deps[FindLocation("interrogate.exe", [])] = 1 t.deps[FindLocation("dtool_have_python.dat", [])] = 1 + if target.endswith(".obj") and any(x.endswith(".in") for x in input): + if not CrossCompiling(): + t.deps[FindLocation("interrogate_module.exe", [])] = 1 + if target.endswith(".pz") and not CrossCompiling(): t.deps[FindLocation("pzip.exe", [])] = 1