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/common/bam.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/common/bam.lua') diff --git a/src/common/bam.lua b/src/common/bam.lua index 6d4a29c..77b98c5 100644 --- a/src/common/bam.lua +++ b/src/common/bam.lua @@ -1,7 +1,11 @@ -local function lib(name) - local source = Collect('src/common/' .. name .. '/*.c') - return Compile(common_settings, source) -end +return function(s) + local function lib(name) + local source = Collect('src/common/' .. name .. '/*.c') + return Compile(s.common_settings, source) + end -common_libc = lib('libc') -common_libkogata = lib('libkogata') + return { + libc = lib('libc'), + libkogata = lib('libkogata') + } +end -- cgit v1.2.3