File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def spawn(self, cmd):
74
74
else :
75
75
flags = ['-fPIC' , '-std=c++0x' , '-Wall' , '-Wno-parentheses' ]
76
76
platform .mac_ver ()
77
- if platform .system () == 'Darwin' :
77
+ if platform .system () in [ 'Darwin' , 'FreeBSD' ] :
78
78
os .environ ['CC' ] = os .environ ['CXX' ] = 'c++'
79
79
orig_customize_compiler = distutils .sysconfig .customize_compiler
80
80
@@ -88,12 +88,13 @@ def customize_compiler(compiler):
88
88
distutils .sysconfig .customize_compiler = customize_compiler
89
89
flags .extend ([
90
90
'-stdlib=libc++' ,
91
- '-mmacosx-version-min=10.7' ,
92
91
])
93
- if tuple (map (int , platform .mac_ver ()[0 ].split ('.' ))) >= (10 , 9 ):
94
- flags .append (
95
- '-Wno-error=unused-command-line-argument-hard-error-in-future' ,
96
- )
92
+ if platform .system () == 'Darwin' :
93
+ flags .append ('-mmacosx-version-min=10.7' ,)
94
+ if tuple (map (int , platform .mac_ver ()[0 ].split ('.' ))) >= (10 , 9 ):
95
+ flags .append (
96
+ '-Wno-error=unused-command-line-argument-hard-error-in-future' ,
97
+ )
97
98
# Dirty workaround to avoid link error...
98
99
# Python distutils doesn't provide any way to configure different
99
100
# flags for each cc and c++.
You can’t perform that action at this time.
0 commit comments