aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-21 15:13:03 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-21 15:13:03 -0800
commit005950752c6e0c42e847b080f6d81a05e1bcb38c (patch)
tree56805f2f682e5b3932682a49603c39759a44e3ec
parent15f6d2d20bafaffe5eb559f42ff05fa296a10dcb (diff)
RUNTIME_TYPE_INFO is not supported in fastcomp
-rwxr-xr-xemcc1
-rw-r--r--tests/test_core.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/emcc b/emcc
index 36532d16..47c29465 100755
--- a/emcc
+++ b/emcc
@@ -1219,6 +1219,7 @@ try:
assert not bind, 'embind not supported in fastcomp yet'
assert shared.Settings.MAX_SETJMPS == 20, 'changing MAX_SETJMPS is not supported in fastcomp yet'
assert shared.Settings.INIT_HEAP == 0, 'HEAP_INIT is not supported in fastcomp (and should never be needed except for debugging)'
+ assert not shared.Settings.RUNTIME_TYPE_INFO, 'RUNTIME_TYPE_INFO is not supported in fastcomp'
except Exception, e:
logging.error('Compiler settings are incompatible with fastcomp. You can fall back to the older compiler core, although that is not recommended, see https://github.com/kripken/emscripten/wiki/LLVM-Backend')
raise e
diff --git a/tests/test_core.py b/tests/test_core.py
index 75ecec84..2d389fbc 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -5872,6 +5872,8 @@ def process(filename):
self.do_run(src, '|hello|43|world|41|', post_build=post)
def test_typeinfo(self):
+ if os.environ.get('EMCC_FAST_COMPILER') != '0': return self.skip('fastcomp does not support RUNTIME_TYPE_INFO')
+
if self.emcc_args is not None and self.emcc_args != []: return self.skip('full LLVM opts optimize out all the code that uses the type')
Settings.RUNTIME_TYPE_INFO = 1