summaryrefslogtreecommitdiff
path: root/xmake/actions/clean/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-19 23:06:29 +0800
committerruki <[email protected]>2020-02-19 12:38:56 +0800
commited49fcb8e77087a12b01cae2bb7841a75a25b0fc (patch)
tree25877850c5751989bf46251afc57c3495f7ea223 /xmake/actions/clean/main.lua
parente630b2edcccc8fd988f630959ac0cda5933251da (diff)
support cross-compilation for autotools
Diffstat (limited to 'xmake/actions/clean/main.lua')
-rw-r--r--xmake/actions/clean/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua
index db2341ab6..f8dabc81a 100644
--- a/xmake/actions/clean/main.lua
+++ b/xmake/actions/clean/main.lua
@@ -26,6 +26,7 @@ import("core.project.config")
import("core.base.global")
import("core.project.project")
import("core.platform.platform")
+import("core.platform.environment")
import("private.action.clean.remove_files")
-- do clean target
@@ -225,7 +226,9 @@ function _try_clean()
-- try cleaning it
if configfile and tool and trybuild then
+ environment.enter("toolchains")
tool.clean()
+ environment.leave("toolchains")
end
end