summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-05 10:18:00 +0800
committerruki <[email protected]>2015-06-05 10:18:00 +0800
commit12ce7dea3c7a74f77e9792236cb85bab4fd001e4 (patch)
treea64fd1ef7c1380ae63e5c982472e8712489b3374 /core/src
parentf9cecfd11c958122bb6d619069593b91333bdf6f (diff)
add ccache
Diffstat (limited to 'core/src')
-rwxr-xr-xcore/src/xmake/machine.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index a0c17b0e9..1fbfaaca4 100755
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -287,6 +287,14 @@ xm_machine_ref_t xm_machine_init()
#endif
lua_setglobal(impl->lua, "_ARCH");
+ // init redirect to null
+#if defined(TB_CONFIG_OS_WINDOWS)
+ lua_pushstring(impl->lua, "nul");
+#else
+ lua_pushstring(impl->lua, "/dev/null");
+#endif
+ lua_setglobal(impl->lua, "_NULDEV");
+
// init namespace: xmake
lua_newtable(impl->lua);
lua_setglobal(impl->lua, "xmake");