aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-26 16:10:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-03 14:41:29 -0700
commit4ec26690083c3ded80d10f15fce3ced1bdca0b9f (patch)
tree21d0f3b2e1a788e3b340fd47e2fb072d4448fdf7
parent02cc30eb48181981114d29dc7f82f6af8412c8ce (diff)
disable ALIASING_FUNCTION_POINTERS for DLOPEN_SUPPORT
-rwxr-xr-xemcc9
1 files changed, 6 insertions, 3 deletions
diff --git a/emcc b/emcc
index a07ce4f1..9d087341 100755
--- a/emcc
+++ b/emcc
@@ -1070,9 +1070,6 @@ try:
shared.Settings.CORRECT_OVERFLOWS = 1
assert not shared.Settings.PGO, 'cannot run PGO in ASM_JS mode'
- if shared.Settings.ASSERTIONS and shared.Settings.ALIASING_FUNCTION_POINTERS:
- logging.warning('ALIASING_FUNCTION_POINTERS is on, function pointer comparisons may be invalid across types')
-
if shared.Settings.CORRECT_SIGNS >= 2 or shared.Settings.CORRECT_OVERFLOWS >= 2 or shared.Settings.CORRECT_ROUNDINGS >= 2:
debug_level = 4 # must keep debug info to do line-by-line operations
@@ -1109,6 +1106,12 @@ try:
if shared.Settings.DLOPEN_SUPPORT:
shared.Settings.LINKABLE = 1
+ if shared.Settings.ALIASING_FUNCTION_POINTERS:
+ logging.warning('disabling ALIASING_FUNCTION_POINTERS for dlopen support')
+ shared.Settings.ALIASING_FUNCTION_POINTERS = 0
+
+ if shared.Settings.ASSERTIONS and shared.Settings.ALIASING_FUNCTION_POINTERS:
+ logging.warning('ALIASING_FUNCTION_POINTERS is on, function pointer comparisons may be invalid across types')
if shared.Settings.STB_IMAGE and final_suffix in JS_CONTAINING_SUFFIXES:
input_files.append(shared.path_from_root('third_party', 'stb_image.c'))