We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e86f9 commit 398dab8Copy full SHA for 398dab8
Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
@@ -323,6 +323,15 @@ package final class ClangTargetBuildDescription {
323
args += ["-I", toolchainResourcesPath.pathString]
324
}
325
326
+ // suppress warnings if the package is remote
327
+ if self.package.isRemote {
328
+ args += ["-w"]
329
+ // `-w` (suppress warnings) and `-Werror` (warnings as errors) flags are mutually exclusive
330
+ if let index = args.firstIndex(of: "-Werror") {
331
+ args.remove(at: index)
332
+ }
333
334
+
335
return args
336
337
0 commit comments