aboutsummaryrefslogtreecommitdiff
path: root/luasystem-scm-0.rockspec
diff options
context:
space:
mode:
authorOscar Lim <olim@ucla.edu>2016-05-07 14:37:25 -0700
committerOscar Lim <olim@ucla.edu>2016-05-08 16:01:40 -0700
commit8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701 (patch)
tree9624af38c4ba35de244da2281e08049589140e20 /luasystem-scm-0.rockspec
parent040d7066649ddfcb72424b1cb70d6ad00ea84a21 (diff)
downloadluasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.tar.gz
luasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.tar.bz2
luasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.zip
Support for monotime
Provide `monotime` function with at least 1 millisecond resolution.
Diffstat (limited to 'luasystem-scm-0.rockspec')
-rw-r--r--luasystem-scm-0.rockspec12
1 files changed, 11 insertions, 1 deletions
diff --git a/luasystem-scm-0.rockspec b/luasystem-scm-0.rockspec
index 83f4172..1093ac4 100644
--- a/luasystem-scm-0.rockspec
+++ b/luasystem-scm-0.rockspec
@@ -18,16 +18,25 @@ dependencies = {
18 18
19local function make_platform(plat) 19local function make_platform(plat)
20 local defines = { 20 local defines = {
21 linux = { },
22 unix = { },
23 macosx = { },
24 win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
25 mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
26 }
27 local libraries = {
28 linux = { "rt" },
21 unix = { }, 29 unix = { },
22 macosx = { }, 30 macosx = { },
23 win32 = { }, 31 win32 = { },
24 mingw32 = { "WINVER=0x0501" }, 32 mingw32 = { },
25 } 33 }
26 return { 34 return {
27 modules = { 35 modules = {
28 ['system.core'] = { 36 ['system.core'] = {
29 sources = { 'src/core.c', 'src/compat.c', 'src/time.c', }, 37 sources = { 'src/core.c', 'src/compat.c', 'src/time.c', },
30 defines = defines[plat], 38 defines = defines[plat],
39 libraries = libraries[plat],
31 }, 40 },
32 }, 41 },
33 } 42 }
@@ -36,6 +45,7 @@ end
36build = { 45build = {
37 type = 'builtin', 46 type = 'builtin',
38 platforms = { 47 platforms = {
48 linux = make_platform('linux'),
39 unix = make_platform('unix'), 49 unix = make_platform('unix'),
40 macosx = make_platform('macosx'), 50 macosx = make_platform('macosx'),
41 win32 = make_platform('win32'), 51 win32 = make_platform('win32'),