diff options
author | LCID Fire <lcid-fire@gmx.net> | 2012-05-28 14:09:38 +0200 |
---|---|---|
committer | LCID Fire <lcid-fire@gmx.net> | 2012-05-28 14:09:38 +0200 |
commit | e9dd4ca2fa189d06c92518b57a40cdb0962ee011 (patch) | |
tree | 255beeeebd6482594719ee17eaba130d21e25456 | |
parent | e5622fed879cbab5a7a3d5aac48e86784c471426 (diff) | |
parent | 506de96842099ad1bdab2f4c70293ee4cce99aa5 (diff) |
Merge branch 'incoming' of https://github.com/kripken/emscripten into incoming
-rwxr-xr-x | tests/runner.py | 9 | ||||
-rw-r--r-- | tools/scons/site_scons/site_tools/emscripten/emscripten.py | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index e3e0543b..d6731ed5 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6899,6 +6899,15 @@ f.close() assert 'foo.o: ' in output, '-%s failed to produce the right output: %s' % (opt, output) assert 'error' not in err, 'Unexpected stderr: ' + err + def test_scons(self): # also incidentally tests c++11 integration in llvm 3.1 + try_delete(os.path.join(self.get_dir(), 'test')) + shutil.copytree(path_from_root('tests', 'scons'), os.path.join(self.get_dir(), 'test')) + shutil.copytree(path_from_root('tools', 'scons', 'site_scons'), os.path.join(self.get_dir(), 'test', 'site_scons')) + os.chdir(os.path.join(self.get_dir(), 'test')) + Popen(['scons']).communicate() + output = run_js('scons_integration.js') + assert 'If you see this - the world is all right!' in output + def test_llvm_nativizer(self): # avoid impure_ptr problems etc. shutil.copyfile(path_from_root('tests', 'files.cpp'), os.path.join(self.get_dir(), 'files.cpp')) diff --git a/tools/scons/site_scons/site_tools/emscripten/emscripten.py b/tools/scons/site_scons/site_tools/emscripten/emscripten.py index cb14b58e..7ccf2c5f 100644 --- a/tools/scons/site_scons/site_tools/emscripten/emscripten.py +++ b/tools/scons/site_scons/site_tools/emscripten/emscripten.py @@ -28,7 +28,7 @@ def generate(env, emscripten_path=None, **kw): env.Replace(CC = os.path.join(emscPath, "emcc" )) env.Replace(CXX = os.path.join(emscPath, "em++" )) - env.Replace(LINK = os.path.join(emscPath, "emld" )) + env.Replace(LINK = os.path.join(emscPath, "emcc" )) # SHLINK and LDMODULE should use LINK so no # need to change them here |