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 18
18
# Whether to create libarrow symlinks on posix systems.
19
19
CREATE_LIBARROW_SYMLINKS = os .environ .get ("MONGO_CREATE_LIBARROW_SYMLINKS" , "1" )
20
20
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
+
21
26
# Set a default value for MACOSX_DEPLOYMENT_TARGET.
22
27
os .environ .setdefault ("MACOSX_DEPLOYMENT_TARGET" , "10.15" )
23
28
@@ -152,10 +157,7 @@ def append_arrow_flags(ext):
152
157
if os .name == "posix" :
153
158
ext .extra_compile_args .append ("-std=c++17" )
154
159
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 :
159
161
ext .extra_compile_args .append ("-D_GLIBCXX_USE_CXX11_ABI=0" )
160
162
161
163
elif os .name == "nt" :
You can’t perform that action at this time.
0 commit comments