[MacPorts] #53605: get GCC to use libc++?
MacPorts
noreply at macports.org
Sun Feb 19 14:40:38 UTC 2017
#53605: get GCC to use libc++?
---------------------+-----------------------
Reporter: RJVB | Owner:
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: gcc6 gcc7
---------------------+-----------------------
(I guess this is a request for an enhancement...)
In reaction to Marcus's new C++11 PG (which I think implements [http
://ease-the-computation.haunted.io/compile-clang-against-libstdc-with-c11
-support-on-a-mac/ this idea]) I wondered if it wouldn't be possible to
create a modified GCC build that uses libc++ . In my experience on Linux
GCC 6 still creates sometimes significantly faster code and the build
speed gap has narrowed with every new clang release becoming slower and
every new GCC release becoming faster. So there could be a real benefit to
using GCC for code that doesn't require any clang-specific features like
blocks - meaning the vast majority of cross-platform software.
GCC can be made to use libc++ at runtime
(http://libcxx.llvm.org/docs/UsingLibcxx.html#using-libc-with-gcc) so it
should be possible to hardcode the paths/options provided in that example.
Has this been tried before (I couldn't find any trace on google)?
--
Ticket URL: <https://trac.macports.org/ticket/53605>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list