diff options
author | cookedm <cookedm@localhost> | 2006-03-07 22:02:23 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-03-07 22:02:23 +0000 |
commit | c9d2cdc913171d079eabb6b71405d7101041356b (patch) | |
tree | a66f5fe7b0d197b434e83fe3e17dbd87076f3839 /numpy/distutils/ccompiler.py | |
parent | e3a1d502e5d08a755dd1d91eb74341c7617adbdd (diff) | |
parent | 5bb7342c6c2fa9757edc28df0dbbc8d433ac50d8 (diff) | |
download | numpy-c9d2cdc913171d079eabb6b71405d7101041356b.tar.gz |
Merge trunk (r2142:2204) to power_optimization branch
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r-- | numpy/distutils/ccompiler.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index efd458897..3e5d25dce 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -13,6 +13,14 @@ from exec_command import exec_command from misc_util import cyg2win32, is_sequence, mingw32 from distutils.spawn import _nt_quote_args +# hack to set compiler optimizing options. Needs to integrated with something. +import distutils.sysconfig +_old_init_posix = distutils.sysconfig._init_posix +def _new_init_posix(): + _old_init_posix() + distutils.sysconfig._config_vars['OPT'] = '-Wall -g -O2' +#distutils.sysconfig._init_posix = _new_init_posix + # Using customized CCompiler.spawn. def CCompiler_spawn(self, cmd, display=None): if display is None: |