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

6 Коммитов

Автор SHA1 Сообщение Дата
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 f0fe97c448 Use llvm-ar instead of llvm-link in emar
This makes the semantics of emar to be the same as the semantics of
system ar.
2012-02-08 18:45:37 -05:00
Alon Zakai d620f29853 use llvm-link in emar instead of llvm-ld 2012-01-25 15:07:52 -08:00
Alon Zakai 3c17526474 make emcc and emar more robust against odd makefile inputs 2011-12-16 21:55:39 -08:00
Alon Zakai df41a40591 generate .o by default, not .bc. fixes test_zlib 2011-12-14 17:01:16 -08:00
Alon Zakai 5322f208ad initial work to refactor emcc into emcc, emld, emar, emranlib 2011-12-14 11:12:19 -08:00