From bcb65bd7d9ebc89ffca0d6addc063fd7f2561dd5 Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Wed, 20 Sep 2023 12:43:41 +0200 Subject: [PATCH] vars/autotools.groovy: make sure to have dynacfgPipeline.defaultTools.MAKE defined even if there are *other* tools [#24] Signed-off-by: Jim Klimov --- vars/autotools.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vars/autotools.groovy b/vars/autotools.groovy index 2e99d93..cf772fd 100644 --- a/vars/autotools.groovy +++ b/vars/autotools.groovy @@ -27,6 +27,10 @@ def sanityCheckDynacfgPipeline(Map dynacfgPipeline = [:]) { // Initialize default `make` implementation to use (there are many), etc.: if (!dynacfgPipeline.containsKey('defaultTools')) { + dynacfgPipeline['defaultTools'] = [:] + } + + if (!dynacfgPipeline['defaultTools'].containsKey('MAKE')) { dynacfgPipeline['defaultTools'] = [ 'MAKE': 'make' ]