Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

cc-wrapper: Enter C++ mode when -lc++ is passed #269694

Closed
wants to merge 1 commit into from

Commits on Nov 24, 2023

  1. cc-wrapper: Enter C++ mode when -lc++ is passed

    When linking C++ programs in LLVM we're currently explicitly passing
    in -lc++abi as this appears to be required by recent versions of
    Clang. However, it also appears to b common for packages to use
    the C compiler to link binaries which uses C++, in which case they
    do pass in -lc++. This changes the wrapper to also take this into
    consideration and enter "C++ mode" whenever -lc++ is passed as an
    argument.
    
    Fixes NixOS#166205
    judofyr committed Nov 24, 2023
    Copy the full SHA
    86e6142 View commit details
    Browse the repository at this point in the history