From 92f638e1f9a9306a4296631cbc8f97c253e6ba88 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Sat, 13 Jan 2024 17:17:43 +0500 Subject: compiler.preprocess: add depends kwarg This patch adds 'depends' keyword to compiler.preprocess(). It allows to execute other targets before doing the preprocessing. Test-case is added to demonstrate that functionality: it generates the header before preprocessing the C source that uses that generated header. Thanks to @bruchar1 for getting this patch to work. --- docs/markdown/snippets/preprocess-depends.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/preprocess-depends.md (limited to 'docs/markdown') diff --git a/docs/markdown/snippets/preprocess-depends.md b/docs/markdown/snippets/preprocess-depends.md new file mode 100644 index 000000000..531246462 --- /dev/null +++ b/docs/markdown/snippets/preprocess-depends.md @@ -0,0 +1,5 @@ +## `depends` kwarg now supported by compiler.preprocess() + +It is now possible to specify the dependent targets with `depends:` +for compiler.preprocess(). These targets should be built before the +preprocessing starts. -- cgit v1.2.3