Skip to content

[depends] Boost fails to build on OSX 10.11, Xcode 7.3.1 #7998

@fanquake

Description

@fanquake
clang: warning: optimization flag '-finline-functions' is not supported
In file included from libs/thread/src/pthread/once.cpp:8:
In file included from libs/thread/src/pthread/./once_atomic.cpp:9:
In file included from ./boost/thread/once.hpp:20:
In file included from ./boost/thread/pthread/once_atomic.hpp:16:
./boost/thread/detail/move.hpp:31:10: fatal error: 'type_traits' file not found
#include <type_traits>

It seems adding -stdlib=libc++ to the cxxflags fixes the issue

This also occurs with the x86_64-apple-darwin11 prefix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions