From f2a3df2473b83473238ca713737340b47be411fb Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 2 May 2025 10:04:17 -0600 Subject: [PATCH] Allow cookbook_configure and cookbook_cmake templates to take arguments --- src/bin/cook.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/cook.rs b/src/bin/cook.rs index 2d409695..b7e1bf1f 100644 --- a/src/bin/cook.rs +++ b/src/bin/cook.rs @@ -789,7 +789,7 @@ COOKBOOK_CONFIGURE_FLAGS=( COOKBOOK_MAKE="make" COOKBOOK_MAKE_JOBS="$(nproc)" function cookbook_configure { - "${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}" + "${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}" "$@" "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" "${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}" } @@ -821,7 +821,8 @@ EOF -DENABLE_STATIC=False \ -GNinja \ -Wno-dev \ - "${COOKBOOK_CMAKE_FLAGS[@]}" + "${COOKBOOK_CMAKE_FLAGS[@]}" \ + "$@" "${COOKBOOK_NINJA}" -j"${COOKBOOK_MAKE_JOBS}" DESTDIR="${COOKBOOK_STAGE}" "${COOKBOOK_NINJA}" install -j"${COOKBOOK_MAKE_JOBS}"