[
https://issues.apache.org/jira/browse/ARROW-6925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16954118#comment-16954118
]
John Norris commented on ARROW-6925:
------------------------------------
The cmake code only checks if APPLE is true, so there doesn't seem to be a way
for me to convince it not to add the flag. From SetupCxxFlags.cmake:
if(APPLE)
# Depending on the default OSX_DEPLOYMENT_TARGET (< 10.9), libstdc++ may be
# the default standard library which does not support C++11. libc++ is the
# default from 10.9 onward.
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -stdlib=libc++")
endif()
> [C++] Arrow fails to buld on MacOS 10.13.6 using brew gcc 7 and 8
> -----------------------------------------------------------------
>
> Key: ARROW-6925
> URL: https://issues.apache.org/jira/browse/ARROW-6925
> Project: Apache Arrow
> Issue Type: Bug
> Environment: MacOS 10.13.6 using both brew gcc 7 and 8.
> Reporter: John Norris
> Priority: Major
> Labels: C++
>
> Both SetupCxxFlags.cmake and ThirdpartyToolchain.cmake add -stdlib=libc++ to
> the compiler flags when APPLE is true, but if you're using GCC from brew (or
> presumably from anywhere other that Apple), this flag is not recognized and
> the build fails.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)