From bc0468d6edfc769aefca04f0dd0ec953619ae2d9 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 9 Jun 2024 19:14:23 +0200 Subject: [PATCH] premake: support structuredAttrs in setup hook Tested gmad with and without __structuredAttrs. Building it succeeded on master with structuredAttrs, but the log output showed that the configure flags were not passed correctly previously. --- pkgs/development/tools/misc/premake/setup-hook.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/premake/setup-hook.sh b/pkgs/development/tools/misc/premake/setup-hook.sh index 6e65e9e8c73f..d89229f8a786 100644 --- a/pkgs/development/tools/misc/premake/setup-hook.sh +++ b/pkgs/development/tools/misc/premake/setup-hook.sh @@ -3,9 +3,8 @@ premakeConfigurePhase() { local flagsArray=( ${premakefile:+--file=$premakefile} - $premakeFlags ${premakeFlagsArray[@]} - ${premakeBackend:-gmake} ) + concatTo flagsArray premakeFlags premakeFlagsArray premakeBackend=gmake echoCmd 'configure flags' "${flagsArray[@]}"