summaryrefslogtreecommitdiff
path: root/debian/jit-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/jit-test.c')
-rw-r--r--debian/jit-test.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/jit-test.c b/debian/jit-test.c
new file mode 100644
index 0000000..e476e08
--- /dev/null
+++ b/debian/jit-test.c
@@ -0,0 +1,17 @@
+// This little program runs the macros in the SLJIT header file
+// which auto-detect architecture. This enables us to only attempt
+// to use SLJIT on architectures that support it
+//
+#define SLJIT_CONFIG_AUTO 1
+#include "../sljit/sljitConfigInternal.h"
+
+#ifndef SLJIT_CONFIG_UNSUPPORTED
+ #warning JIT enabled
+#else
+ #error JIT not supported
+#endif
+
+int main(void)
+{
+ return 0;
+}