summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-19 08:56:54 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-19 08:56:54 +0000
commit88e01e594e2b045f9ef6e8a45aee110bdc1563db (patch)
tree0a123892fdf924dc2a73df516b031863b7e01665 /numpy/distutils/mingw32ccompiler.py
parent8b32c5b46ecac3a07c6ea34561fd4d968bcab01f (diff)
downloadnumpy-88e01e594e2b045f9ef6e8a45aee110bdc1563db.tar.gz
Add a warning if no symbols found in the dll (if stripped, for example).
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 3b7be6343..cdbd9462a 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -243,6 +243,9 @@ def generate_def(dll, dfile):
else:
break
+ if len(syms) == 0:
+ log.warn('No symbols found in %s' % dll)
+
d = open(dfile, 'w')
d.write('LIBRARY %s\n' % dll)
d.write(';CODE PRELOAD MOVEABLE DISCARDABLE\n')