Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r72252:8a35207a7342
Date: 2014-06-27 14:08 +0200
http://bitbucket.org/pypy/pypy/changeset/8a35207a7342/

Log:    Add sanity checks: an empty path would generate the option "-L" or
        "-I", which alone would break the command-line completely, by eating
        whatever the next option is.

diff --git a/rpython/translator/platform/posix.py 
b/rpython/translator/platform/posix.py
--- a/rpython/translator/platform/posix.py
+++ b/rpython/translator/platform/posix.py
@@ -22,9 +22,11 @@
         return ['-l%s' % lib for lib in libraries]
 
     def _libdirs(self, library_dirs):
+        assert '' not in library_dirs
         return ['-L%s' % ldir for ldir in library_dirs]
 
     def _includedirs(self, include_dirs):
+        assert '' not in include_dirs
         return ['-I%s' % idir for idir in include_dirs]
 
     def _linkfiles(self, link_files):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to