From d3300e8aae9c507bdac2bf44eb3255f7b430a789 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 31 Mar 2017 14:40:21 +0800 Subject: fix checking conflict bug --- xmake/core/project/option.lua | 8 ++++---- 1 file 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 -- cgit v1.3.1