Merging Windows\Linux versions of setup.py #2

This commit is contained in:
maxirmx 2015-10-13 01:46:52 +03:00
parent 7c5bfc5916
commit ccf6156261
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ from distutils.command.build_ext import build_ext
import platform
# By subclassing build_extensions we have the actual compiler that will be used which is really known only after finalize_options
# http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used
compile_options = {'msvc' : ['/Ox', '/EHsc'] ,
'other' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function'] }