File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1313from tc_build .kernel import KernelBuilder , LinuxSourceManager , LLVMKernelBuilder
1414from tc_build .tools import HostTools , StageTools
1515
16+ try :
17+ # pylint: disable-next=ungrouped-imports
18+ from argparse import BooleanOptionalAction
19+ # 'store_true' sets 'default' implicitly, do it explicitly to match
20+ BOOL_ARGS = {'action' : BooleanOptionalAction , 'default' : False }
21+ except ImportError :
22+ BOOL_ARGS = {'action' : 'store_true' }
23+
1624# This is a known good revision of LLVM for building the kernel
1725GOOD_REVISION = 'd5802c30ae6cf296489daf12b36582e9e1d658bb'
1826
2937 issues when compiling but it will increase compile times by 15-20%%.
3038
3139 ''' ),
32- action = 'store_true' )
40+ ** BOOL_ARGS )
3341parser .add_argument ('-b' ,
3442 '--build-folder' ,
3543 help = textwrap .dedent ('''\
You can’t perform that action at this time.
0 commit comments