@@ -395,6 +395,7 @@ def install(args):
395
395
# Install swiftpm content in all of the passed prefixes.
396
396
for prefix in args .install_prefixes :
397
397
install_swiftpm (prefix , args )
398
+ install_file (args , "config.json" , os .path .join (os .path .join (prefix , "share" ), "pm" ))
398
399
399
400
# Install libSwiftPM if an install directory was provided.
400
401
if args .libswiftpm_install_dir :
@@ -461,7 +462,9 @@ def install_dylib(args, library_name, install_dir, module_names):
461
462
# Helper function that installs a single built artifact to a particular directory. The source may be either a file or a directory.
462
463
def install_binary (args , binary , destination , destination_is_directory = True , ignored_patterns = []):
463
464
src = os .path .join (args .bin_dir , binary )
465
+ install_file (args , src , destination , destination_is_directory = destination_is_directory , ignored_patterns = ignored_patterns )
464
466
467
+ def install_file (args , src , destination , destination_is_directory = True , ignored_patterns = []):
465
468
if destination_is_directory :
466
469
dest = os .path .join (destination , binary )
467
470
mkdir_p (os .path .dirname (dest ))
0 commit comments