Comment 2 for bug 2045404

Revision history for this message
eMTee (realprogger) wrote :

<cologic> this should work:

diff -r 16df2b91f3a6 SConstruct
--- a/SConstruct Mon Nov 06 12:03:32 2023 +0100
+++ b/SConstruct Thu Dec 28 22:19:56 2023 +0000
@@ -363,7 +363,7 @@
     '--no-wrap', '--keyword=_', '--keyword=T_', '--keyword=TF_',
     '--keyword=TFN_:1,2', '--keyword=F_', '--keyword=gettext_noop',
     '--keyword=N_', '--keyword=CT_', '--boost', '-s', '--output=$TARGET',
- '$SOURCES'
+ '${list(filter(lambda _: not str(_).endswith(".o"), SOURCES))}'
 ]
 pot_bld = Builder(action=Action(
     [pot_args],

<cologic> https://scons.org/doc/4.0.0/HTML/scons-man.html#python_code_substitution