diff options
| -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() |
