@@ -345,10 +345,11 @@ function build_tarballs(ARGS, src_name, src_version, sources, script,
345
345
dependencies,
346
346
)
347
347
extra_kwargs = extract_kwargs (kwargs, (:lazy_artifacts , :init_block , :augment_platform_block ))
348
+ compiler_kwargs = extract_kwargs (kwargs, (:preferred_gcc_version ,:preferred_llvm_version ,:preferred_rust_version ,:preferred_go_version ,:compilers ,:clang_use_lld ))
348
349
349
350
if meta_json_stream != = nothing
350
351
# If they've asked for the JSON metadata, by all means, give it to them!
351
- dict = get_meta_json (args... ; extra_kwargs... , julia_compat= julia_compat)
352
+ dict = get_meta_json (args... ; extra_kwargs... , compiler_kwargs ... , julia_compat= julia_compat)
352
353
println (meta_json_stream, JSON. json (dict))
353
354
354
355
if meta_json_stream != = stdout
@@ -665,6 +666,7 @@ function get_meta_json(
665
666
init_block:: String = " " ,
666
667
augment_platform_block:: String = " " ,
667
668
lazy_artifacts:: Bool = ! isempty (augment_platform_block) && minimum_compat (julia_compat) < v " 1.7" ,
669
+ kwargs...
668
670
)
669
671
670
672
dict = Dict (
@@ -683,6 +685,12 @@ function get_meta_json(
683
685
if platforms != [AnyPlatform ()]
684
686
dict[" platforms" ] = triplet .(platforms)
685
687
end
688
+
689
+ # Add any other optional things we want to include
690
+ for (k, v) in kwargs
691
+ dict[" $k " ] = v
692
+ end
693
+
686
694
return dict
687
695
end
688
696
0 commit comments