Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r2628:3c3b6f19b5f6
Date: 2016-02-13 10:20 +0100
http://bitbucket.org/cffi/cffi/changeset/3c3b6f19b5f6/

Log:    Pfff, debug=True goes in the way on Windows if you don't explicitly
        have the debug version of the MS CRT installed first

diff --git a/testing/embedding/test_basic.py b/testing/embedding/test_basic.py
--- a/testing/embedding/test_basic.py
+++ b/testing/embedding/test_basic.py
@@ -100,6 +100,7 @@
             c = distutils.ccompiler.new_compiler()
             print('compiling %s with %r' % (name, modules))
             extra_preargs = []
+            debug = True
             if sys.platform == 'win32':
                 libfiles = []
                 for m in modules:
@@ -108,9 +109,12 @@
                     libfiles.append('Release\\%s.lib' % m[:-4])
                 modules = libfiles
                 extra_preargs.append('/MANIFEST')
+                debug = False    # you need to install extra stuff
+                                 # for this to work
             elif threads:
                 extra_preargs.append('-pthread')
-            objects = c.compile([filename], macros=sorted(defines.items()), 
debug=True)
+            objects = c.compile([filename], macros=sorted(defines.items()),
+                                debug=debug)
             c.link_executable(objects + modules, name, 
extra_preargs=extra_preargs)
         finally:
             os.chdir(curdir)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to