File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1818# Whether to create libarrow symlinks on posix systems.
1919CREATE_LIBARROW_SYMLINKS = os .environ .get ("MONGO_CREATE_LIBARROW_SYMLINKS" , "1" )
2020
21+ # Whether to add the GLIBCXX override.
22+ # Arrow's manylinux{2010, 2014} binaries are built with gcc <= 4.8 which predates CXX11 ABI
23+ # - https://uwekorn.com/2019/09/15/how-we-build-apache-arrows-manylinux-wheels.html
24+ ADD_GLIBCXX_OVERRIDE = os .environ .get ("MONGO_ADD_GLIBCXX_OVERRIDE" , "1" )
25+
2126# Set a default value for MACOSX_DEPLOYMENT_TARGET.
2227os .environ .setdefault ("MACOSX_DEPLOYMENT_TARGET" , "10.15" )
2328
@@ -152,10 +157,7 @@ def append_arrow_flags(ext):
152157 if os .name == "posix" :
153158 ext .extra_compile_args .append ("-std=c++17" )
154159
155- # Arrow's manylinux{2010, 2014} binaries are built with gcc < 4.8 which predates CXX11 ABI
156- # - https://uwekorn.com/2019/09/15/how-we-build-apache-arrows-manylinux-wheels.html
157- # - https://arrow.apache.org/docs/python/extending.html#example
158- if "std=" not in os .environ .get ("CXXFLAGS" , "" ):
160+ if ADD_GLIBCXX_OVERRIDE :
159161 ext .extra_compile_args .append ("-D_GLIBCXX_USE_CXX11_ABI=0" )
160162
161163 elif os .name == "nt" :
You can’t perform that action at this time.
0 commit comments