Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Alan Kligman a2bc9a30de Updated to add a PYTHON config option instead of defaulting to python2. This should preserve the default behavior in a way that can be overridden. 2012-12-19 18:06:48 -05:00
Alan Kligman 315f13e5a1 Updated scripts to call python2 directly rather than relying on python symlink pointing to the right place. See PEP394 for details on why this should be OK. 2012-12-19 18:06:48 -05:00
Sigmund Vik f829735cc3 Misc fixes for Windows.
Most of these changes have to do with how python scripts are invoked.

For Linux, 'Popen([EMCC] + args)' works because the first line in emcc
is '#!/usr/bin/env python'. On Windows, the python interpreter has
to be explicitly invoked, e.g. 'Popen(['python', EMCC] + args)'. Note
that there is no harm in explicitly invoking the python interpreter
on Linux, so this works on both platforms.

For Windows, execvp() behaves differently than on Linux:
http://mail.python.org/pipermail/python-list/2002-July/763863.html
http://msdn.microsoft.com/en-us/library/3xw6zy53.aspx

This causes many strange things to happen as the parent process
terminated before its children. In this change the use of execvp()
has been replaced with subprocess.call().

This change also fixes some code that assumed that the path separator
always is '/', but for Windows it is '\'. And where the path module
can be required, we use path.normalize() and path.resolve() to check
if a filename is absolute in a platform agnostic manner.
2012-03-20 14:26:50 +01:00
Ehsan Akhgari f10e3e811d Import shared.py properly 2012-01-30 17:31:07 -05:00
Alon Zakai 417d47d048 path fixes 2011-10-05 11:12:45 -07:00
Alon Zakai 3b7e914142 fix merge conflicts 2011-10-05 09:55:48 -07:00
SiggyBar c5763b01d1 Edited tools/emmakenxx.py via GitHub 2011-09-23 13:41:37 +03:00
Alon Zakai 460a975de0 emmaken fixes: handle c++ files and -include more properly 2011-09-16 15:34:34 -07:00
Alon Zakai 85cba40ddc emmakenxx.py to handle .c files in projects that are really c++ 2011-04-27 16:58:13 -07:00