Skip to content

port/include/features.h leaks musl-internal hidden visibility macro into consumer include paths #13

Description

@yspbwx2010

Found while running a full C++23 workspace statically linked via the native mcpp path (openkal-llvm-runtime@0.1.3 + openkal-musl@0.3.5, x86_64-linux-musl).

openkal-musl port/include/features.h:146 defines musl's internal
visibility macro hidden. With the openkal include set active, any
consumer TU that textually includes C headers gets hidden defined as
__attribute__((__visibility__("hidden"))) — which breaks user code
using hidden as an ordinary identifier (we had two such locals). Could
the port shim keep that macro scoped to musl-internal builds?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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