diff options
| author | ruki <[email protected]> | 2019-07-28 21:27:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-28 21:33:19 +0800 |
| commit | 41cf8c97d7817ab6d3b76b252bf6d75e2f565eb3 (patch) | |
| tree | 72bbf98d9bdd4d394e588fc49855be211baaab78 /xmake/core/base/os.lua | |
| parent | 1bb412afcd5d416bec002ea882b797499e60417c (diff) | |
improve tmpdir for termux
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 57353d4d8..59f36b062 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -493,7 +493,7 @@ function os.tmpdir() -- get root tmpdir if os._ROOT_TMPDIR == nil then - os._ROOT_TMPDIR = os.getenv("XMAKE_TMPDIR") or os._tmpdir() + os._ROOT_TMPDIR = os.getenv("XMAKE_TMPDIR") or os.getenv("TMPDIR") or os._tmpdir() end local tmpdir_root = os._ROOT_TMPDIR |
