summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-04 00:45:06 +0800
committerruki <[email protected]>2025-11-07 15:01:56 +0800
commit70624314ebcdedbd5e2dd5e51542a33d38f182bc (patch)
treef611a7350a26d7e1ddf53ef3f4a88be6e9eb57ea /xmake/core/main.lua
parent7fc086de45783207a760e16b6b2b6a7f2e56a915 (diff)
limit os.cd
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index 3f0a4484f..cfde482fb 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -218,7 +218,7 @@ function main._init()
xmake._PROJECT_FILE = projectfile
-- enter the project directory
- if os.isdir(os.projectdir()) then
+ if os.isdir(os.projectdir()) and xmake.in_main_thread() then
os.cd(os.projectdir())
end
else