diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-11 10:18:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-11 10:18:20 -0800 |
commit | 72e1ce8b4bfa082a72f154e4ca4a2f6ba504db5b (patch) | |
tree | 78d1615e6d97457da4ef3147f1fc0e7c7c9f2250 | |
parent | 3634b45c63e420910c77a631352ab257b8a6039f (diff) |
use internal relooper sources
-rwxr-xr-x | tests/runner.py | 2 | ||||
-rw-r--r-- | tools/shared.py | 17 |
2 files changed, 2 insertions, 17 deletions
diff --git a/tests/runner.py b/tests/runner.py index 413b27f9..b67d068e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10168,8 +10168,6 @@ fi output = '\n'.join(output) assert ('bootstrapping relooper succeeded' in output) == (i == 2), 'only bootstrap on first O2: ' + output assert os.path.exists(RELOOPER) == (i >= 2), 'have relooper on O2: ' + output - assert (' checking out' in output) == (i == 2 and phase == 0), 'check out the code on first O2, and if no dir already present: ' + output - assert (' updating' in output) == (i == 2 and phase == 1), 'when have relooper dir, just update: ' + output assert ('L2 : do {' in open('a.out.js').read()) == (i >= 2), 'reloop code on O2: ' + output else: diff --git a/tools/shared.py b/tools/shared.py index f3e34c85..b5fd671f 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1032,19 +1032,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e print >> sys.stderr, '=======================================' print >> sys.stderr, 'bootstrapping relooper...' Cache.ensure() - RELOOPER_DIR = os.path.join(Cache.dirname, 'relooper') - currdir = os.getcwd() - if not os.path.exists(RELOOPER_DIR): - # check out relooper - os.chdir(os.path.dirname(RELOOPER_DIR)) - print >> sys.stderr, ' checking out', os.getcwd() - execute(['git', 'clone', 'git://github.com/kripken/Relooper.git', os.path.basename(RELOOPER_DIR)]) - assert os.path.exists(RELOOPER_DIR) - else: - # update - print >> sys.stderr, ' updating' - os.chdir(RELOOPER_DIR) - execute(['git', 'pull', '-u'], stdout=None if DEBUG else PIPE, stderr=None if DEBUG else PIPE) + RELOOPER_DIR = path_from_root('src', 'relooper') def make(opt_level): raw = RELOOPER + '.raw.js' @@ -1067,9 +1055,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e print >> sys.stderr, '=======================================' ok = True finally: - os.chdir(currdir) if not ok: - print >> sys.stderr, 'bootstrapping relooper failed. You may need to manually create src/relooper.js, by checking out the Relooper project ( https://github.com/kripken/Relooper ) and building in the emscripten/ dir.' + print >> sys.stderr, 'bootstrapping relooper failed. You may need to manually create src/relooper.js by compiling it, see src/relooper/emscripten' 1/0 # Permanent cache for dlmalloc and stdlibc++ |