summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-24 14:32:08 +0800
committerruki <[email protected]>2017-05-24 14:32:08 +0800
commit7ef69739513b4b4431f6f683fe2a9d297658be02 (patch)
tree14fd2789a956cbcb79e1ea217541bfc6e75bd99e /xmake/core/base/os.lua
parent4e52205dc696ade5ba01c8d6ccf9831b59ad6196 (diff)
remove xmake variable
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 95ebfa79f..5c7ca78e2 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -680,6 +680,20 @@ function os.addenv(name, ...)
end
+-- get the program directory
+function os.programdir()
+
+ -- get it
+ return xmake._PROGRAM_DIR
+end
+
+-- get the program file
+function os.programfile()
+
+ -- get it
+ return xmake._PROGRAM_FILE
+end
+
-- get version info
function os.versioninfo()