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 b21f730 commit 09bef39Copy full SHA for 09bef39
Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
@@ -311,6 +311,15 @@ package final class ClangTargetBuildDescription {
311
args += ["-I", includeSearchPath.pathString]
312
}
313
314
+ // suppress warnings if the package is remote
315
+ if self.package.isRemote {
316
+ args += ["-w"]
317
+ // `-w` (suppress warnings) and `-Werror` (warnings as errors) flags are mutually exclusive
318
+ if let index = args.firstIndex(of: "-Werror") {
319
+ args.remove(at: index)
320
+ }
321
322
+
323
return args
324
325
0 commit comments