summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-10 22:07:22 +0900
committerGitHub <[email protected]>2021-01-10 22:07:22 +0900
commit596b5427209a8ad30a7969385b3d6e90f2139c12 (patch)
tree26a0299fee3223f455b5a4fe0e02432166797825
parente8e28eacc72f4648ca1bd75f4d6d7ea51b76df3f (diff)
parentfe28e8617e99e3088a988e562c7be55056f56b64 (diff)
downloadmruby-596b5427209a8ad30a7969385b3d6e90f2139c12.tar.gz
mruby-596b5427209a8ad30a7969385b3d6e90f2139c12.zip
Merge pull request #5274 from shuujii/fix-the-condition-to-remove-mrbtest-when-rake-clean
Fix the condition to remove `mrbtest` when `rake clean`
-rw-r--r--tasks/test.rake3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks/test.rake b/tasks/test.rake
index 80f7670af..bb08a6cb8 100644
--- a/tasks/test.rake
+++ b/tasks/test.rake
@@ -60,5 +60,6 @@ MRuby.each_target do |build|
end
task :clean do
- rm_f "#{MRuby::Build.install_dir}/mrbtest"
+ host = MRuby.targets["host"]
+ rm_f host.exefile("#{host.class.install_dir}/mrbtest") if host && host.test_enabled?
end