From 8cb96115e5ae4f7c7559c4bd76c464b82a289d0a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Jun 2014 01:30:07 -0400 Subject: build: Add "build" target. --- diff --git a/build b/build index 2a40656..497a1e8 100755 --- a/build +++ b/build @@ -4,3 +4,14 @@ include ../source.mk nop: @: + +build: + oh-autoconfigure -- \ + --enable-utf \ + --enable-unicode-properties \ + $$(../jit-test.sh) + oh-autobuild + if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \ + oh-autobuild -T check; \ + fi + touch $@ diff --git a/jit-test.c b/jit-test.c new file mode 100644 index 0000000..3c17a65 --- /dev/null +++ b/jit-test.c @@ -0,0 +1,13 @@ +#define SLJIT_CONFIG_AUTO 1 + +#include "tmp/src/sljit/sljitConfigInternal.h" + +#ifdef SLJIT_CONFIG_UNSUPPORTED +#error SLJIT unsupported +#endif + +int +main(void) +{ + return 0; +} diff --git a/jit-test.sh b/jit-test.sh new file mode 100755 index 0000000..bcdfc27 --- /dev/null +++ b/jit-test.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if ${CC} -c -o/dev/null "${0%.sh}.c"; then + printf '--enable-jit\n' +fi +exit 0 -- cgit v0.9.1