File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 5252 parser .add_argument (
5353 "--clean" , default = False , action = "store_true" , help = "Clean before building."
5454 )
55+ parser .add_argument (
56+ "--cmake-clean-cache" ,
57+ default = False ,
58+ action = "store_true" ,
59+ help = "Clean CMake cache before building." ,
60+ )
5561 parser .add_argument (
5662 "--verbose" ,
5763 "-v" ,
100106 continue_on_error = args .continue_on_error ,
101107 build_tests = args .build_tests ,
102108 verbose = args .verbose ,
109+ cmake_clean_cache = args .cmake_clean_cache ,
103110 )
104111 )
105112 except KeyboardInterrupt :
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def build_packages(
2828 verbose : bool = False ,
2929 build_base : str = "build" ,
3030 install_base : str = "install" ,
31+ cmake_clean_cache : bool = False ,
3132) -> int :
3233 os .chdir (workspace_root )
3334 packages = packages or []
@@ -40,6 +41,8 @@ def build_packages(
4041 arguments += ["--allow-overriding" ] + packages
4142 if continue_on_error :
4243 arguments += ["--continue-on-error" ]
44+ if cmake_clean_cache :
45+ arguments += ["--cmake-clean-cache" ]
4346
4447 cmake_arguments = []
4548 if build_type is not None :
You can’t perform that action at this time.
0 commit comments