Coder Social home page Coder Social logo

Comments (5)

jagerman avatar jagerman commented on June 27, 2024

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.

jagerman avatar jagerman commented on June 27, 2024

In theory, #if defined(__APPLE__) && defined(__clang__) && defined(_LIBCPP_VERSION) might be enough here.

from oxen-encoding.

barracuda156 avatar barracuda156 commented on June 27, 2024

@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.

barracuda156 avatar barracuda156 commented on June 27, 2024

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.

jagerman avatar jagerman commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.