summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-31 14:40:21 +0800
committerruki <[email protected]>2017-03-31 14:40:21 +0800
commitd3300e8aae9c507bdac2bf44eb3255f7b430a789 (patch)
tree9f1fc52de448a9c3d280ade67266c13bed723038
parent8f86be7a16e905f0c7223493a2644bde776130c7 (diff)
fix checking conflict bug
-rw-r--r--xmake/core/project/option.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index a26450f24..5d0b6466d 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -403,10 +403,10 @@ end
function option:_check_condition()
-- the files
- local cfile = path.join(os.tmpdir(), "__checking.c")
- local cxxfile = path.join(os.tmpdir(), "__checking.cpp")
- local objectfile = path.join(os.tmpdir(), "__checking.obj")
- local targetfile = path.join(os.tmpdir(), "__checking.bin")
+ local cfile = os.tmpfile() .. ".c"
+ local cxxfile = os.tmpfile() .. ".cpp"
+ local objectfile = os.tmpfile() .. ".obj"
+ local targetfile = os.tmpfile() .. ".bin"
-- check links
if not self:_check_links(cfile, objectfile, targetfile) then return false end