From ddda92602822527a60d0b050662ef35303d0ec54 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Tue, 17 Sep 2024 00:30:14 -0500 Subject: Add more builds with different flags --- meta.lua | 50 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/meta.lua b/meta.lua index 171926f..4d2a94d 100644 --- a/meta.lua +++ b/meta.lua @@ -1,4 +1,17 @@ - +local optimizations = { + tiny = "-Oz", + size = "-Os", + debug = "-Og", + zero = "-O0", + one = "-O1", + two = "-O2", + three = "-O3", +} +local debug = { + release = "", + debug = "-g", +} +local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} local builds = {} builds["libressl-meta"] = { image="image-mingw64", @@ -7,19 +20,24 @@ builds["libressl-meta"] = { produces = {}, export=true, } -builds["libressl-mingw64"] = { - image="libressl-meta", - requires = { - {"git", "portable"}, - }, - produces = { - ["libssl.a"] = true, - ["libtls.a"] = true, - ["libbs.a"] = true, - ["libcompat.a"] = true, - ["libcompatnoopt.a"] = true, - ["libcrypto.a"] = true, - }, - timeout = 600, --Jeez this takes forever -} +for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do + builds["libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k] = { + image="libressl-meta", + requires = { + {"git", "portable"}, + }, + produces = { + ["libssl.a"] = true, + ["libtls.a"] = true, + ["libbs.a"] = true, + ["libcompat.a"] = true, + ["libcompatnoopt.a"] = true, + ["libcrypto.a"] = true, + }, + timeout = 600, --Jeez this takes forever + env = { + CFLAGS=" " .. opti_v .. " " .. rel_v + }, + } +end return builds -- cgit v1.2.3-55-g6feb