diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-30 23:17:12 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-30 23:17:12 +0200 |
commit | f58f65c30de315d4419f69a92a708cbed797ff37 (patch) | |
tree | efaaa82089523dc0f7a3b9a6ab4c963550f9b241 /src/common/bam.lua | |
parent | fa5327d4cc5e47656326b8c0c55d23cd71b04462 (diff) | |
download | kogata-f58f65c30de315d4419f69a92a708cbed797ff37.tar.gz kogata-f58f65c30de315d4419f69a92a708cbed797ff37.zip |
Release mode (enables some optimizations) ; fix tests.
Diffstat (limited to 'src/common/bam.lua')
-rw-r--r-- | src/common/bam.lua | 16 |
1 files changed, 10 insertions, 6 deletions
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 |