Skip to content

-static-libstdc++ unused on macOS #76945

@h-2

Description

@h-2

We are building mac binaries with llvm17 installed from homebrew. The built binaries depend on /opt/homebrew/opt/llvm/lib/c++/libc++.1.dylib.
We would like the binaries to not depend on the presence of homebrew, therefore we added -static-libstdc++ to the build, but this is ignored:

clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]

On Linux this works. What are we doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions