From 3fb4a1b7d5e8286833f8d3f5fdc8450c00936d7d Mon Sep 17 00:00:00 2001 From: f Date: Fri, 1 Oct 2021 10:35:21 -0300 Subject: [PATCH] gem compiler can receive extra flags --- bulk-compiler.sh | 1 + gem-compiler.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bulk-compiler.sh b/bulk-compiler.sh index 037d436..92d57eb 100755 --- a/bulk-compiler.sh +++ b/bulk-compiler.sh @@ -23,6 +23,7 @@ find build/ -type f | GEM_VERSION="${GEM_VERSION}" \ EXTRA_PKGS="${EXTRA_PKGS}" \ EXTRA_GEMS="${EXTRA_GEMS}" \ + GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \ /usr/local/bin/bootstrap dirname "${BUILT}" | xargs mkdir -p diff --git a/gem-compiler.sh b/gem-compiler.sh index 11fbc7e..39d355e 100755 --- a/gem-compiler.sh +++ b/gem-compiler.sh @@ -13,5 +13,5 @@ cd cache/ gem fetch --source=https://gems.${SUTTY} --platform=ruby --version ${GEM_VERSION} ${GEM_NAME} cd ../gems/ -gem compile -V --prune --strip "strip --strip-unneeded" "../cache/${GEM_NAME}-${GEM_VERSION}.gem" +gem compile -V --prune --strip "strip --strip-unneeded" ${GEM_COMPILER_FLAGS} "../cache/${GEM_NAME}-${GEM_VERSION}.gem" gem inabox -o "${GEM_NAME}-${GEM_VERSION}-${PLATFORM}.gem" --host https://${HTTP_BASIC_USER}:${HTTP_BASIC_PASSWORD}@gems.${SUTTY}