diff options
| author | ruki <[email protected]> | 2025-11-04 00:45:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-07 15:01:56 +0800 |
| commit | 70624314ebcdedbd5e2dd5e51542a33d38f182bc (patch) | |
| tree | f611a7350a26d7e1ddf53ef3f4a88be6e9eb57ea /xmake/core/base/os.lua | |
| parent | 7fc086de45783207a760e16b6b2b6a7f2e56a915 (diff) | |
limit os.cd
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 94cde85e7..eb9ab6d31 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -637,6 +637,9 @@ end function os.cd(dir) assert(dir) + -- we can only change directory in main thread + assert(xmake.in_main_thread()) + -- support path instance dir = tostring(dir) |
