summaryrefslogtreecommitdiff
path: root/lang/swift510/files/patch-swiftpm_Sources_Basics_Triple+Basics.swift
blob: 18050c65dc1a813e089f952b12f11e56d481bc6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- swiftpm/Sources/Basics/Triple+Basics.swift.orig	2024-06-05 06:47:24 UTC
+++ swiftpm/Sources/Basics/Triple+Basics.swift
@@ -136,7 +136,7 @@ extension Triple {
         switch os {
         case _ where isDarwin():
             return ".dylib"
-        case .linux, .openbsd:
+        case .linux, .openbsd, .freebsd:
             return ".so"
         case .win32:
             return ".dll"
@@ -155,7 +155,7 @@ extension Triple {
         switch os {
         case _ where isDarwin():
             return ""
-        case .linux, .openbsd:
+        case .linux, .openbsd, .freebsd:
             return ""
         case .wasi:
             return ".wasm"