From 95f54e562650032c2f9b27e9052d51de4237152f Mon Sep 17 00:00:00 2001 From: Jordan Gordeev Date: Sun, 22 Jun 2025 11:11:40 +0200 Subject: lang/swift510: New port The Swift programming language -- a modern programming language with many great features. This port includes: * the Swift compiler * the Swift standard library * various tools * the Foundation framework * the Swift Package Manager (SwiftPM) * the run-time support that you need for running compiled programs PR: 286454 Reviewed-by: kib --- ...h-swift-driver_Utilities_build-script-helper.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lang/swift510/files/patch-swift-driver_Utilities_build-script-helper.py (limited to 'lang/swift510/files/patch-swift-driver_Utilities_build-script-helper.py') diff --git a/lang/swift510/files/patch-swift-driver_Utilities_build-script-helper.py b/lang/swift510/files/patch-swift-driver_Utilities_build-script-helper.py new file mode 100644 index 000000000000..3fa1733f290b --- /dev/null +++ b/lang/swift510/files/patch-swift-driver_Utilities_build-script-helper.py @@ -0,0 +1,22 @@ +--- swift-driver/Utilities/build-script-helper.py.orig 2024-06-04 23:56:01 UTC ++++ swift-driver/Utilities/build-script-helper.py +@@ -108,6 +108,10 @@ def get_swiftpm_options(args): + # Android and fail. + '-Xswiftc', '-Xcc', '-Xswiftc', '-U_GNU_SOURCE', + ] ++ elif build_os.startswith('freebsd'): ++ swiftpm_args += [ ++ '-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/freebsd', ++ ] + else: + # Library rpath for swift, dispatch, Foundation, etc. when installing + swiftpm_args += [ +@@ -121,7 +125,7 @@ def install_binary(file, source_dir, install_dir, verb + + def install_binary(file, source_dir, install_dir, verbose): + print('Installing %s into: %s' % (file, install_dir)) +- cmd = ['rsync', '-a', os.path.join(source_dir, file), install_dir] ++ cmd = ['install', '-p', os.path.join(source_dir, file), install_dir] + if verbose: + print(' '.join(cmd)) + subprocess.check_call(cmd) -- cgit v1.2.3