summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_clib.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/build_clib.py')
-rw-r--r--numpy/distutils/command/build_clib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py
index a4f49b00e..e1f15d465 100644
--- a/numpy/distutils/command/build_clib.py
+++ b/numpy/distutils/command/build_clib.py
@@ -132,12 +132,12 @@ class build_clib(old_build_clib):
log.info("Detected changes on compiler optimizations, force rebuilding")
self.force = True
- import atexit
- def report():
+ def report(copt):
log.info("\n########### CLIB COMPILER OPTIMIZATION ###########")
- log.info(self.compiler_opt.report(full=True))
+ log.info(copt.report(full=True))
- atexit.register(report)
+ import atexit
+ atexit.register(report, self.compiler_opt)
if self.have_f_sources():
from numpy.distutils.fcompiler import new_fcompiler