|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v3 02/24] modules: collect module meta-data |
Date: | Fri, 18 Jun 2021 18:09:55 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 18/06/21 06:53, Gerd Hoffmann wrote:
+def find_command(src, target, compile_commands): + for command in compile_commands: + if command['file'] != src: + continue + if target != '' and command['command'].find(target) == -1: + continue
Did you look into using extract_objects for this instead of looking for the target (which works, but yuck :))?
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |