Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772747b commit 3e4b0e8Copy full SHA for 3e4b0e8
1 file changed
setup.py
@@ -138,8 +138,8 @@ def build_extensions(self):
138
# unfortunately, distutils doesn't let us provide separate C and C++
139
# compilers
140
if compiler is not None:
141
- (ccshared,) = sysconfig.get_config_vars('CCSHARED')
142
- args['compiler_so'] = compiler + ' ' + ccshared
+ (ccshared,opt) = sysconfig.get_config_vars('CCSHARED','OPT')
+ args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared
143
if linker_so is not None:
144
args['linker_so'] = linker_so + ' -shared'
145
self.compiler.set_executables(**args)
0 commit comments