diff options
| author | TitanSnow <[email protected]> | 2017-05-24 07:24:12 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-24 07:24:12 +0800 |
| commit | 89e2cc76f4e4cfd45a089b4967e02756ca8f52cb (patch) | |
| tree | 91478e2607d2c4896ddfb505c9c22f3f88736921 | |
| parent | 31a7bbec4241981688d5e6ae02259c0930073470 (diff) | |
add xmake to path
| -rw-r--r-- | xmake/core/main.lua | 5 |
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() |
