File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Sources/SWBGenericUnixPlatform Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,14 @@ struct GenericUnixSDKRegistryExtension: SDKRegistryExtension {
130130 switch operatingSystem {
131131 case . freebsd:
132132 return true // FreeBSD is always LLVM-based.
133- case . linux where operatingSystem. distribution? . kind == . amazon && operatingSystem. distribution? . version == " 2 " :
134- return true // Amazon Linux 2 has a gold linker bug see: https://sourceware.org/bugzilla/show_bug.cgi?id=23016.
133+ case . linux:
134+ // Amazon Linux 2 has a gold linker bug see: https://sourceware.org/bugzilla/show_bug.cgi?id=23016.
135+ guard let distribution = operatingSystem. distribution else {
136+ return false
137+ }
138+ return distribution. kind == . amazon && distribution. version == " 2 "
135139 default :
136- return operatingSystem != context. hostOperatingSystem // Cross-compiling
140+ return operatingSystem != context. hostOperatingSystem // Cross-compiling.
137141 }
138142 } ( )
139143
You can’t perform that action at this time.
0 commit comments