File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 3535
3636 ''' ),
3737 type = str )
38+ parser .add_argument ('-c' , '--configure-vals' , nargs = '+' )
3839parser .add_argument ('-i' ,
3940 '--install-folder' ,
4041 help = textwrap .dedent ('''\
161162final .folders .build = Path (build_folder , 'final' )
162163final .folders .install = Path (args .install_folder ).resolve () if args .install_folder else None
163164final .llvm_install_folder = llvm_install_folder
165+ final .configure_vals = args .configure_vals
164166final .debug = args .debug
165167final .vendor_string = args .vendor_string
166168final .show_commands = args .show_build_commands
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class RustBuilder(Builder):
1414 def __init__ (self ):
1515 super ().__init__ ()
1616
17+ self .configure_vals = []
1718 self .llvm_install_folder = None
1819 self .debug = False
1920 self .vendor_string = ''
@@ -65,6 +66,9 @@ def configure(self):
6566 if self .debug :
6667 configure_cmd .append ('--enable-debug' )
6768
69+ for val in self .configure_vals :
70+ configure_cmd += ['--set' , val ]
71+
6872 self .clean_build_folder ()
6973 self .make_build_folder ()
7074 self .run_cmd (configure_cmd , cwd = self .folders .build )
You can’t perform that action at this time.
0 commit comments