Skip to content

mismatch between apinotes flag in documentation and compiler (Swift Package Manager) #10840

Open
@carlynorama

Description

@carlynorama

The documentation says the compiler flag is: -fapi-notes-modules

https://clang.llvm.org/docs/APINotes.html

But in SwiftPM one gets a warning to change it to -fapinotes-modules (swift-tools-version: 6.2)

        .target(
            name: "BackingC",
            cSettings: [
                .unsafeFlags(["-fapinotes-modules"])
            ]
        )

It actually didn't seem to trigger the .apinotes file provided anyway, but that I'm still working on.

Unclear if this a llvm documentation problem or a SwiftPM problem?

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