Skip to content

Regression compared to native: Using -warnings-as-errors & -suppress-warnings results in build error #1512

Description

@MahdiBM

https://github.com/swift-dns/swift-endpoint/actions/runs/28789065587/job/85362846133?pr=48

[115 / 278] CNIOLinux
error: conflicting options '-warnings-as-errors' and '-suppress-warnings'
error: conflicting options '-Wwarning' and '-suppress-warnings'

the native build system works just fine on 6.3. 6.4 nightlies though result in the build error above.

This is with

.treatAllWarnings(as: .error),
.treatWarning("StrictMemorySafety", as: .warning),

This usage is explicitly allowed in the proposal:
https://github.com/swiftlang/swift-evolution/blob/b8e1751ca343d1e50a98cc4e3c06298afe6f6556/proposals/0480-swiftpm-warning-control.md?plain=1#L80

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions