From 982459ff2287082ef844e80b3c9c0deda3ad673b Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 31 Jul 2024 17:43:00 -0500 Subject: Try putting environment variables somewhere else --- init | 2 +- meta.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/init b/init index d9c208f..11fb612 100755 --- a/init +++ b/init @@ -4,7 +4,7 @@ luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") mkdir "$luaver" tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 cd "$luaver" -make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $1 $2" +make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $CFLAGS" cd "/root/" cp "$luaver/src/*.exe" . cp "$luaver/src/*.dll" . diff --git a/meta.lua b/meta.lua index 5fcc120..6cc9e93 100644 --- a/meta.lua +++ b/meta.lua @@ -38,7 +38,9 @@ for version, link, name, optimization, rel, flag, _, image in cartesian(lua_vers "lua" .. version .. ".dll", "luac.exe", }, - entrypoint = "init " .. optimization .. " " .. flag, + env = { + CFLAGS = optimization .. " " .. flag, + }, }) end return builds -- cgit v1.2.3-55-g6feb