[jit] Fix the DISABLE_JIT build.
authorZoltan Varga <vargaz@gmail.com>
Tue, 1 Aug 2017 19:13:30 +0000 (15:13 -0400)
committerZoltan Varga <vargaz@gmail.com>
Tue, 1 Aug 2017 19:13:30 +0000 (15:13 -0400)
mono/mini/mini-profiler.c

index 3b6149d92728edccfbec18bc89fd6c087be26dd2..1e79ecc4099b661d95d670ce0f3e9a1187adf50d 100644 (file)
@@ -4,6 +4,8 @@
  * See the LICENSE file in the project root for more information.
  */
 
+#include <config.h>
+
 #include <mono/metadata/abi-details.h>
 #include <mono/metadata/mono-debug.h>
 
@@ -11,6 +13,8 @@
 #include "ir-emit.h"
 #include "mini.h"
 
+#ifndef DISABLE_JIT
+
 void
 mini_profiler_emit_instrumentation_call (MonoCompile *cfg, void *func, gboolean entry, MonoInst **ret, MonoType *rtype)
 {
@@ -64,6 +68,8 @@ mini_profiler_emit_instrumentation_call (MonoCompile *cfg, void *func, gboolean
        mono_emit_jit_icall (cfg, func, iargs);
 }
 
+#endif
+
 void
 mini_profiler_context_enable (void)
 {