summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-24 07:24:12 +0800
committerTitanSnow <[email protected]>2017-05-24 07:24:12 +0800
commit89e2cc76f4e4cfd45a089b4967e02756ca8f52cb (patch)
tree91478e2607d2c4896ddfb505c9c22f3f88736921 /xmake
parent31a7bbec4241981688d5e6ae02259c0930073470 (diff)
add xmake to path
Diffstat (limited to 'xmake')
-rw-r--r--xmake/core/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index cda338294..6788b004e 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -155,6 +155,11 @@ Or you can add `--root` option to allow run as root temporarily.
end
end
+ -- add xmake to path
+ if xmake._EXECUTABLE_PATH then
+ os.addenv("PATH", path.directory(xmake._EXECUTABLE_PATH))
+ end
+
-- start profiling
if option.get("profile") then
profiler:start()