We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d48dc7 commit 9ff1739Copy full SHA for 9ff1739
Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
@@ -305,6 +305,15 @@ package final class ClangTargetBuildDescription {
305
args += ["-I", includeSearchPath.pathString]
306
}
307
308
+ // suppress warnings if the package is remote
309
+ if self.package.isRemote {
310
+ args += ["-w"]
311
+ // `-w` (suppress warnings) and `-Werror` (warnings as errors) flags are mutually exclusive
312
+ if let index = args.firstIndex(of: "-Werror") {
313
+ args.remove(at: index)
314
+ }
315
316
+
317
return args
318
319
0 commit comments