Comments (5)
Does the gcc build use its own stdlibc++, or is it using the system libc++? (The problem is specific to AppleClang + apple's oft-broken libc++).
from oxen-encoding.
In theory, #if defined(__APPLE__) && defined(__clang__) && defined(_LIBCPP_VERSION)
might be enough here.
from oxen-encoding.
@jagerman GCC normally (by default) uses libstdc++
.
For clang, it may work with libc++
, but we will need to use LLVM clang with a newer runtime libs, and I am not sure how to write a logic via macros for that.
(I know how to write the logic for compiler and runtime choice in the portfile, but can test it a bit later. GCC works fine though, that is tested.)
from oxen-encoding.
In theory,
#if defined(__APPLE__) && defined(__clang__) && defined(_LIBCPP_VERSION)
might be enough here.
Technically, we have Apple clang with system runtime and LLVM clang with system runtime or its own runtime. Recent LLVM clang with its own libc++
should work, and they can be used at least back to 10.5.
Do we have a macro to differentiate between these?
from oxen-encoding.
With f6172d5 this is now:
#if defined(__APPLE__) && defined(__clang__)
and the redundant extra __APPLE__
check was fixed in 096b289.
Do we have a macro to differentiate between these?
I don't know; the last time I looked at this there was no simple compiler predef to disambiguate, but if you know of something I'd happily put it in.
from oxen-encoding.
Related Issues (2)
- Some TODOs: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxen-encoding.