diff options
| author | star9029 <[email protected]> | 2024-12-02 22:53:20 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2024-12-02 22:53:20 +0800 |
| commit | d9bc6250c4cab08285cbeab73293886527098f14 (patch) | |
| tree | a69ff7b0f85a12e5009b76af4c52e61aafbb54ce /xmake/modules/private/action/require/impl | |
| parent | 42934990cefe25d78a98e4314a56f9c8b9b6f281 (diff) | |
Improve ccache tool
Diffstat (limited to 'xmake/modules/private/action/require/impl')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index 0a6e9b0be..1e64be14e 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -26,7 +26,7 @@ import("core.project.target") import("core.project.project") import("core.platform.platform") import("lib.detect.find_file") -import("lib.detect.find_tool") +import("private.tools.ccache") import("private.action.require.impl.actions.test") import("private.action.require.impl.actions.patch_sources") import("private.action.require.impl.actions.download_resources") @@ -354,11 +354,7 @@ function _enable_ccache(package) return end - local ccache = find_tool("ccache") - if not ccache then - ccache = find_tool("sccache") - end - + local ccache = ccache.get() if ccache then local name = path.basename(ccache.program) package:data_set("ccache", name) |
