From 70624314ebcdedbd5e2dd5e51542a33d38f182bc Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 4 Nov 2025 00:45:06 +0800 Subject: limit os.cd --- xmake/core/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/core/main.lua') 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 -- cgit v1.3.1