aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
AgeCommit message (Collapse)Author
2012-04-24add ENV_PREFIX to more placesAlon Zakai
2012-04-24use env python instead of python in tools/shared if it is availableAlon Zakai
2012-04-20clear cache on non-forced sanity checks if the config file changedAlon Zakai
2012-04-18sanity check for javaAlon Zakai
2012-04-17add EM_DEBUG option for test runner printouts of run_jsAlon Zakai
2012-04-15One more linker stub fix for Windows.Sigmund Vik
2012-04-14clean up emscripten temp dirAlon Zakai
2012-04-12fix test_firstrunAlon Zakai
2012-04-12fix EM_SAVE_DIRAlon Zakai
2012-04-11Make it easier to use emscripten from a build system.Sigmund Vik
- Allow the configuration to be specified directly in the EM_CONFIG environment variable instead of in a config file. The config file approach has some shortcomings when using emscripten from a build system (e.g. it uses a single global config file so it is hard to configure emscripten in different ways from different build trees). The presence of newlines in the EM_CONFIG string variable is used to decide if the configuration is stored directly in the environment variable or it is used to specify the config file (is this too much of a hack?). - Skip check_sanity() and check_engine() based on the presence of the config file. When running from a build system, it is the build system's responsibility that everything is set up correctly. Maybe a new environment variable EM_SKIP_CHECKS or something like that might be better to decide whether or not to run these checks? - Do not assume that the SPIDERMONKEY_ENGINE environment variable is set. - Add EM_CACHE environment variable that can be used to control where emscripten should store built libraries.
2012-04-09use unique temp dir in emcc unless EMCC_DEBUG=1 is setAlon Zakai
2012-04-08nicer solution for removing linker stubAlon Zakai
2012-04-08clean up linker a.out|exe stubsAlon Zakai
2012-04-04Unbreak emconfigure et allBehdad Esfahbod
The line: WINDOWS = 'win' in sys.platform was misfiring for sys.platform == 'darwin'. 'nough said.
2012-04-03merge fixesAlon Zakai
2012-04-03[tools/shared.py]: Added -Xmx1024m, big .js quickly go over the default ↵Pierre Renaux
memory heap without this ;
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