[wasm] Compile interp.c with -mllvm -join-liveintervals=false to fix compilation...
authorZoltan Varga <vargaz@gmail.com>
Sun, 4 Aug 2019 21:50:54 +0000 (17:50 -0400)
committerLarry Ewing <lewing@microsoft.com>
Tue, 6 Aug 2019 21:46:19 +0000 (16:46 -0500)
Commit migrated from https://github.com/mono/mono/commit/476af240d242b557ea82723f601795697fffb2e5

src/mono/configure.ac
src/mono/mono/mini/Makefile.am.in

index 4e6dcf3..778eca4 100644 (file)
@@ -4275,6 +4275,7 @@ jit_wanted=true
 boehm_supported=true
 BTLS_SUPPORTED=no
 BTLS_PLATFORM=
+INTERP_CFLAGS=""
 
 case "$host" in
        wasm32*)
@@ -4284,6 +4285,10 @@ case "$host" in
                ACCESS_UNALIGNED="no"
                with_tls=pthread
                target_wasm=yes
+               if test "x$mono_cv_clang" = "xyes"; then
+                  INTERP_CFLAGS="-mllvm -join-liveintervals=false"
+                  AC_SUBST(INTERP_CFLAGS)
+               fi
                ;;
        mips*)
                TARGET=MIPS;
index b57870b..a407491 100755 (executable)
@@ -701,7 +701,7 @@ libmonoldflags += $(JEMALLOC_LDFLAGS)
 endif
 
 libmono_ee_interp_la_SOURCES = $(interp_sources)
-libmono_ee_interp_la_CFLAGS = $(AM_CFLAGS) @CXX_ADD_CFLAGS@
+libmono_ee_interp_la_CFLAGS = $(AM_CFLAGS) @CXX_ADD_CFLAGS@ $(INTERP_CFLAGS)
 if BITCODE
 libmono_ee_interp_la_LDFLAGS = $(libmonoldflags)
 if DISABLE_INTERPRETER