aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
AgeCommit message (Collapse)Author
2012-04-02only include i64 precise code if it will actually be usedAlon Zakai
2012-03-29windows fixesAlon Zakai
2012-03-26use shlexAlon Zakai
2012-03-21fix some bugs with preloading of entire directoriesAlon Zakai
2012-03-21properly handle closure compiler return codesAlon Zakai
2012-03-21add option to add closure compiler arguments in EMCC_CLOSURE_ARGS env varAlon Zakai
2012-03-20back out change to environment varsAlon Zakai
2012-03-20back out change to cmake compiler stuff due to openjpeg breakageAlon Zakai
2012-03-20Misc fixes for Windows.Sigmund Vik
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-15add file preloading in browsersAlon Zakai
2012-03-08default closure compiler in a way that doesn't require EMSCRIPTEN_ROOTAlon Zakai
2012-02-26do not use -std-compile-opts, which is not really meant to be usedAlon Zakai
2012-02-11keep i64 mode 1 in -O3, it is no longer slow, in fact it is faster nowAlon Zakai
2012-02-09enforce strict order in multiple libraries generated in the test runner: the ↵Alon Zakai
order does matter
2012-02-09fix for bug with using old full pathnames when loading builds from cache in ↵Alon Zakai
test runner
2012-02-09Merge pull request #228 from ehsan/use_ar_upstreamAlon Zakai
Use emar for creating static libraries and ld for linking
2012-02-09Cache the result of is_arEhsan Akhgari
2012-02-08Fix the cmake handlingEhsan Akhgari
This enables us to use our own ar and ranlib for CMake based projects. It also lets us use the CFLAGS environment variable in CMake based projects if needed. It also fixes a bug introduced by using sys.argv instead of args.
2012-02-08Add a test for handling of multiply defined symbolsEhsan Akhgari
2012-02-08Improve get_library() to create real library filesEhsan Akhgari
Also, enable caching of the libraries generated in tests in the new get_library implementation.
2012-02-08Use llvm-ar instead of llvm-link in emarEhsan Akhgari
This makes the semantics of emar to be the same as the semantics of system ar.
2012-02-06fix cmake typoAlon Zakai
2012-02-06Use the more Pythonic syntax for substring matchesEhsan Akhgari
2012-02-05show warning if using emscripten.py directlyAlon Zakai
2012-02-03output pretty printed from closure, since we do whitespace compression later ↵Alon Zakai
separately anyhow; pretty printed makes debugging easiser
2012-02-03Merge pull request #212 from ehsan/cmake_support_2Alon Zakai
Support CMake in emconfigure
2012-02-02Support CMake in emconfigureEhsan Akhgari
This adds a CMAKE_TOOLCHAIN_FILE argument to CMake based build systems so that they don't attempt to find headers, libraries and packages which Emscripten does not support
2012-02-02accept empty bitcode files as valid bitcode filesAlon Zakai
2012-02-01llvm inlining support (disabled by default; enabled in benchmarks)Alon Zakai
2012-02-01fix test_poppler and test_iostreamllvm-optsAlon Zakai
2012-02-01refactor build checks for standalone and unsafe optsAlon Zakai
2012-01-31fix usage of llvm opt level in emcc, and test_emcc fixesAlon Zakai
2012-01-31Merge branch 'master' into llvmoptsAlon Zakai
2012-01-30save build_library logs in each project dir separatelyAlon Zakai
2012-01-30do not do -Ox or LTO when building a linkable moduleAlon Zakai
2012-01-29split LLVM LTO into separate passAlon Zakai
2012-01-29switch to -Ox from -std-compile-optsAlon Zakai
2012-01-29enable poppler in o1 and o2, and some test_emcc fixesAlon Zakai
2012-01-28Enable the EM_CONFIG environment variable to override ~/.emscriptenEhsan Akhgari
This commit fixes issue #180.
2012-01-23simplify llvm opt picking code, and allow up to level 3Alon Zakai
2012-01-23enable unsafe llvm opts in emccAlon Zakai
2012-01-21do not generate annotations when disassembling bitcodeAlon Zakai
2012-01-21disable pruning of emcc -s opts from test runner - it's too buggyAlon Zakai
2012-01-20fix bug with Settings.default values not including -O, so comparisons were ↵Alon Zakai
wrong in some cases
2012-01-20fix bug with missing keys in Settings.defaultsAlon Zakai
2012-01-20remove dead function eliminator, which is no longer neededAlon Zakai
2012-01-20do not add unneeded -s 'es in test runnerAlon Zakai
2012-01-18LINKABLE options, disabling dead code elimination for shared libraries and ↵Alon Zakai
main files that have things that shared libraries will access through an extern
2012-01-18use llvm internalive and globaldce to remove unneeded code before compiling ↵Alon Zakai
to js
2012-01-18fix emcc bug with detecting bitcode after refactoring of llvm-nm calling codeAlon Zakai