From 89e2cc76f4e4cfd45a089b4967e02756ca8f52cb Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Wed, 24 May 2017 07:24:12 +0800 Subject: add xmake to path --- xmake/core/main.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/core/main.lua') 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() -- cgit v1.3.1