summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()