From 30da8a7cc0bbb46339b5a9ccc4568f84f1faa462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=CD=98=20H=C3=AA-b=C3=AD?= Date: Wed, 5 Feb 2020 00:44:02 +0800 Subject: [PATCH] Add Command Line option to clean build --- build.bat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.bat b/build.bat index 27c8b93991..4b0a9a9fa9 100644 --- a/build.bat +++ b/build.bat @@ -57,6 +57,15 @@ set enable_logging=ON :parse_cmdline_options if "%1" == "" goto end_parsing_cmdline_options +if "%1" == "clean" ( + rmdir /s /q build + rmdir /s /q thirdparty\src\opencc\build + rmdir /s /q thirdparty\src\marisa-trie\build + rmdir /s /q thirdparty\src\googletest\build + rmdir /s /q thirdparty\src\yaml-cpp\build + rmdir /s /q thirdparty\src\leveldb\build + rmdir /s /q thirdparty\src\glog\cmake-build +) if "%1" == "boost" set build_boost=1 if "%1" == "boost_x64" ( set build_boost=1