summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-26 23:15:10 +0800
committerGitHub <[email protected]>2024-01-26 23:15:10 +0800
commit445e43b40846b29b9abb1293b32b27b7104f54fa (patch)
treed8385c41e4225216ceb165badb0b9d49409bcfd8 /xmake/core
parent8aeb3f7b343981756cdb8b468238776be7285f20 (diff)
parentc4e9dcda21240b9683273a771d4c79446d706d91 (diff)
Merge pull request #4658 from xmake-io/xmakenv
remove PATH in xmake
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/main.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index e813c849a..478f0181f 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -202,14 +202,6 @@ function main._init()
xmake._PROJECT_DIR = path.join(os.tmpdir(), "local")
xmake._PROJECT_FILE = path.join(xmake._PROJECT_DIR, xmake._NAME .. ".lua")
end
-
- -- add the directory of the program file (xmake) to $PATH environment
- local programfile = os.programfile()
- if programfile and os.isfile(programfile) then
- os.addenv("PATH", path.directory(programfile))
- else
- os.addenv("PATH", os.programdir())
- end
return true
end