Skip to content

Commit

Permalink
fix tmpdir conflict #5622
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 16, 2024
1 parent 090c8cc commit ea1ed38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ function _get_default_flags(package, configs, buildtype, opt)
local cachekey = buildtype .. package:plat() .. package:arch()
local cmake_default_flags = _g.cmake_default_flags and _g.cmake_default_flags[cachekey]
if not cmake_default_flags then
local tmpdir = path.join(os.tmpdir() .. ".dir", package:name(), package:mode())
local tmpdir = path.join(os.tmpfile() .. ".dir", package:displayname(), package:mode())
local dummy_cmakelist = path.join(tmpdir, "CMakeLists.txt")

io.writefile(dummy_cmakelist, format([[
Expand Down

0 comments on commit ea1ed38

Please sign in to comment.