From f58f65c30de315d4419f69a92a708cbed797ff37 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 30 Jul 2016 23:17:12 +0200 Subject: Release mode (enables some optimizations) ; fix tests. --- src/lib/bam.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src/lib/bam.lua') diff --git a/src/lib/bam.lua b/src/lib/bam.lua index 44edad2..b7bee20 100644 --- a/src/lib/bam.lua +++ b/src/lib/bam.lua @@ -1,11 +1,15 @@ -local function lib(name) - local source = {Collect('src/lib/' .. name .. '/*.c'), - Collect('src/lib/' .. name .. '/*.s')} - return Compile(user_settings, source) -end - -libc = {lib('libc'), common_libc, common_libkogata} +return function(s, common) + local function lib(name) + local source = {Collect('src/lib/' .. name .. '/*.c'), + Collect('src/lib/' .. name .. '/*.s')} + return Compile(s.user_settings, source) + end + + local libc = {lib('libc'), common.libc, common.libkogata} -libkogata = {lib('libkogata'), libc} - -liblua = {lib('lua'), libc} + return { + libc = libc, + libkogata = {lib('libkogata'), libc}, + liblua = {lib('lua'), libc} + } +end -- cgit v1.2.3