diff options
| author | ruki <[email protected]> | 2024-03-08 00:59:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-08 00:59:02 +0800 |
| commit | c8e8b6c9395df8064ef374954a81b9e36f5278d3 (patch) | |
| tree | 7b27aa2bfe963011345a41a4bf59a4e5a360f969 | |
| parent | 699afb25b815f0d1c9192da9f1886ea522e9291a (diff) | |
if package is debug, reserve sourcedir
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index 5d6d54263..0556e9f6a 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -224,7 +224,9 @@ function _download(package, url, sourcedir, opt) os.mv(sourcedir_tmp, sourcedir) end -- mark this sourcedir as cleanable - package:data_set("cleanable_sourcedir", path.absolute(sourcedir)) + if not package:is_debug() then + package:data_set("cleanable_sourcedir", path.absolute(sourcedir)) + end elseif extension and extension ~= "" then -- create an empty source directory if do not extract package file os.tryrm(sourcedir) |
