[MacPorts] #65470: gcc12 insists on clang13?!
MacPorts
noreply at macports.org
Wed Jul 13 01:39:26 UTC 2022
#65470: gcc12 insists on clang13?!
-------------------------+--------------------
Reporter: mouse07410 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gcc12 |
-------------------------+--------------------
Comment (by mouse07410):
> There is no Xcode gcc.
Except that Xcode includes an executable named "gcc", that reports on
itself as clang ;-)
{{{
$ /usr/bin/gcc -v
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
}}}
**Could you educate me please**: do I understand correctly that if I
invoke G++ like {{{g++ -stdlib=libc++}}}, I can link the resulting binary
with Clang++-produced libraries? Addressing a huge problem with {{{g++}}}
(had to have ''all'' of the involved libraries compiled by g++, or linking
would fail)?
--
Ticket URL: <https://trac.macports.org/ticket/65470#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list