File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,6 @@ public struct SwiftBuildTool: SwiftCommand {
122
122
return
123
123
}
124
124
125
- #if os(Linux)
126
- // Emit warning if clang is older than version 3.6 on Linux.
127
- // See: <rdar://problem/28108951> SR-2299 Swift isn't using Gold by default on stock 14.04.
128
- checkClangVersion ( observabilityScope: swiftTool. observabilityScope)
129
- #endif
130
-
131
125
guard let subset = options. buildSubset ( observabilityScope: swiftTool. observabilityScope) else {
132
126
throw ExitCode . failure
133
127
}
@@ -144,20 +138,6 @@ public struct SwiftBuildTool: SwiftCommand {
144
138
}
145
139
}
146
140
147
- private func checkClangVersion( observabilityScope: ObservabilityScope ) {
148
- // We only care about this on Ubuntu 14.04
149
- guard let uname = try ? TSCBasic . Process. checkNonZeroExit ( args: " lsb_release " , " -r " ) . spm_chomp ( ) ,
150
- uname. hasSuffix ( " 14.04 " ) ,
151
- let clangVersionOutput = try ? TSCBasic . Process. checkNonZeroExit ( args: " clang " , " --version " ) . spm_chomp ( ) ,
152
- let clang = getClangVersion ( versionOutput: clangVersionOutput) else {
153
- return
154
- }
155
-
156
- if clang < Version ( 3 , 6 , 0 ) {
157
- observabilityScope. emit ( warning: " minimum recommended clang is version 3.6, otherwise you may encounter linker errors. " )
158
- }
159
- }
160
-
161
141
public init ( ) { }
162
142
}
163
143
You can’t perform that action at this time.
0 commit comments