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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching C++ Compilers with xbps-alternatives #15714

Closed
ghost opened this issue Oct 22, 2019 · 2 comments
Closed

Switching C++ Compilers with xbps-alternatives #15714

ghost opened this issue Oct 22, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 22, 2019

System

  • c++ --version:
    c++ (GCC) 9.2.0
    Copyright (C) 2019 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • gcc-9.2.0_1:
    clang-9.0.0_2

Expected behavior

I would love to set the default C++ compiler to clang++ using xbps-alternatives.

Actual behavior

Trying to set alternative C++ compilers is not possible as there is no alternative group for c++.
/usr/bin/c++ is not a link and actually a regular file being part of the gcc package. There is an alternative group for cc. Many build tools like e.g. CMake use cc and c++ to compile source code.

Steps to reproduce the behavior

@jnbr
Copy link
Contributor

jnbr commented Oct 22, 2019

In retrospect, the cc alternative group created more problems then it solved.
I don't think we should repeat this for c++ (even though the impact might be smaller).
Most build systems use the CXX environment variable, which, in my opinion, makes more sense then changing /usr/bin/c++.

@ghost
Copy link
Author

ghost commented Oct 22, 2019

Thanks for your reply! Ok.

@ghost ghost closed this as completed Oct 22, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant