aboutsummaryrefslogtreecommitdiffstats
path: root/memcheck/memcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'memcheck/memcheck.c')
-rw-r--r--memcheck/memcheck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/memcheck/memcheck.c b/memcheck/memcheck.c
index 3ccb196..3c8194a 100644
--- a/memcheck/memcheck.c
+++ b/memcheck/memcheck.c
@@ -14,6 +14,12 @@
* Contains implementation of memory checking framework in the emulator.
*/
+/* This file should compile iff qemu is built with memory checking
+ * configuration turned on. */
+#ifndef CONFIG_MEMCHECK
+#error CONFIG_MEMCHECK is not defined.
+#endif // CONFIG_MEMCHECK
+
#include "qemu-queue.h"
#include "qemu_file.h"
#include "elff_api.h"