From fc6ae9f9317c8e2a2ef2618980adffcd5899822b Mon Sep 17 00:00:00 2001 From: f Date: Tue, 18 Jul 2023 15:20:01 -0300 Subject: [PATCH] feat: support cmake flags --- bootstrap.sh | 4 +++- bulk-compiler.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index d25b689..9ba6d85 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,7 +3,9 @@ test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS} test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS} -GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" su-exec builder /usr/local/bin/gem-compiler +GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \ +CMAKE_FLAGS="${CMAKE_FLAGS}" \ + su-exec builder /usr/local/bin/gem-compiler exit_status=$? diff --git a/bulk-compiler.sh b/bulk-compiler.sh index 75c36aa..1be6f66 100755 --- a/bulk-compiler.sh +++ b/bulk-compiler.sh @@ -28,7 +28,7 @@ find build/ -type f | grep -v /.keep | nl | continue fi - unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS + unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS CMAKE_FLAGS source "${BUILD}" @@ -45,6 +45,7 @@ find build/ -type f | grep -v /.keep | nl | EXTRA_PKGS="${EXTRA_PKGS}" \ EXTRA_GEMS="${EXTRA_GEMS}" \ GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \ + CMAKE_FLAGS="${CMAKE_FLAGS}" \ /usr/local/bin/bootstrap 2>&1 | tee -a build_log status=$?