summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-17 11:17:11 +0800
committerruki <[email protected]>2016-03-17 11:17:11 +0800
commit2b233ade0aba7cb061d7b576357a462910c4b62f (patch)
treee81f198ef7b2e84ecb736dbaa3fe9057308b0187 /xmake/core/sandbox/modules/os.lua
parent713413a6f962704fdb5078a38b32c8637eca3d7a (diff)
make config.h
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
-rw-r--r--xmake/core/sandbox/modules/os.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua
index c4903b2c0..1fedef80e 100644
--- a/xmake/core/sandbox/modules/os.lua
+++ b/xmake/core/sandbox/modules/os.lua
@@ -29,6 +29,10 @@ local vformat = require("sandbox/modules/vformat")
-- define module
local sandbox_os = sandbox_os or {}
+-- inherit some builtin interfaces
+sandbox_os.date = os.date
+sandbox_os.time = os.time
+
-- copy file or directory
function sandbox_os.cp(src, dst)