summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-12-20 23:01:19 +0800
committerruki <[email protected]>2019-12-20 23:01:19 +0800
commit4304ebbe2533d0a10a7bf5ae0ec066bff85a9620 (patch)
tree2d26dfef891c86eb3f81cc55a44b15fbab75fdb3
parent1ac4fc9dd15ebbeec2adf0229ee70c90f5362829 (diff)
Revert "improve os.tmpdir"
This reverts commit 1ac4fc9dd15ebbeec2adf0229ee70c90f5362829.
-rw-r--r--xmake/core/base/os.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index cc2da0478..4a31db46c 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -141,10 +141,7 @@ function os._ramdir()
end
if ramdir_root == nil then
if os.host() == "linux" and os.isdir("/dev/shm") then
- if io.writefile("/dev/shm/.xmake_test", "test") then
- ramdir_root = "/dev/shm"
- os.rm("/dev/shm/.xmake_test")
- end
+ ramdir_root = "/dev/shm"
elseif os.host() == "macosx" and os.isdir("/Volumes/RAM") then
-- @note we need the user to execute the command to create it.
-- diskutil partitionDisk `hdiutil attach -nomount ram://8388608` GPT APFS "RAM" 0