File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ def parse_args():
25
25
dest = 'many' , help = 'Build for a single version/kind' )
26
26
parser .add_argument ('--single-version' ,
27
27
help = 'Build for a specific version/kind' )
28
+ parser .add_argument ('--single-version-embeddable' , action = 'store_true' ,
29
+ help = 'When building a single version, build an embeddable extractor (default is standalone)' )
28
30
return parser .parse_args ()
29
31
30
32
@@ -233,12 +235,13 @@ def compile_standalone(version):
233
235
'build_standalone_' + version ,
234
236
version )
235
237
238
+ compile_single_version = compile_embeddable if args .single_version_embeddable == True else compile_standalone
236
239
237
240
if args .single_version :
238
- compile_standalone (args .single_version )
241
+ compile_single_version (args .single_version )
239
242
elif args .many :
240
243
for version in kotlin_plugin_versions .many_versions :
241
244
compile_standalone (version )
242
245
compile_embeddable (version )
243
246
else :
244
- compile_standalone (kotlin_plugin_versions .get_single_version ())
247
+ compile_single_version (kotlin_plugin_versions .get_single_version ())
You can’t perform that action at this time.
0 commit comments