File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -2057,7 +2057,6 @@ build-subdir=stdlib_RA_standalone
2057
2057
release
2058
2058
assertions
2059
2059
2060
- reconfigure
2061
2060
verbose-build
2062
2061
2063
2062
[preset: stdlib_RA_standalone,build,test]
@@ -2074,7 +2073,6 @@ build-subdir=stdlib_RDA_standalone
2074
2073
release-debuginfo
2075
2074
assertions
2076
2075
2077
- reconfigure
2078
2076
verbose-build
2079
2077
2080
2078
[preset: stdlib_RDA_standalone,build,test]
@@ -2091,7 +2089,6 @@ build-subdir=stdlib_DA_standalone
2091
2089
debug
2092
2090
assertions
2093
2091
2094
- reconfigure
2095
2092
verbose-build
2096
2093
2097
2094
[preset: stdlib_DA_standalone,build,test]
Original file line number Diff line number Diff line change @@ -887,6 +887,11 @@ def main_preset():
887
887
"various values used to build in this configuration" ,
888
888
action = "store_true" ,
889
889
default = False )
890
+ parser .add_argument (
891
+ "--reconfigure" ,
892
+ help = "Reconfigure all projects as we build" ,
893
+ action = "store_true" ,
894
+ default = False )
890
895
args = parser .parse_args ()
891
896
if len (args .preset_file_names ) == 0 :
892
897
args .preset_file_names = [
@@ -954,14 +959,17 @@ def main_preset():
954
959
build_script_args += ["--cmake-c-launcher" , args .cmake_c_launcher ]
955
960
if args .cmake_cxx_launcher :
956
961
build_script_args += ["--cmake-cxx-launcher" , args .cmake_cxx_launcher ]
957
-
958
962
printable_command = shell .quote_command (build_script_args )
959
963
if args .expand_invocation :
960
964
print (printable_command )
961
- else :
962
- diagnostics .note ('using preset "{}", which expands to \n \n {}\n ' .format (
963
- args .preset , printable_command ))
964
- shell .call_without_sleeping (build_script_args )
965
+ return 0
966
+
967
+ if args .reconfigure :
968
+ build_script_args += ["--reconfigure" ]
969
+
970
+ diagnostics .note ('using preset "{}", which expands to \n \n {}\n ' .format (
971
+ args .preset , printable_command ))
972
+ shell .call_without_sleeping (build_script_args )
965
973
return 0
966
974
967
975
You can’t perform that action at this time.
0 commit comments