diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-22 01:30:07 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-22 01:33:25 (EDT) |
commit | 8cb96115e5ae4f7c7559c4bd76c464b82a289d0a (patch) | |
tree | 7ac1281fd8264bec6efec4f4a51d36ac7a6f60d3 | |
parent | 6baa7b4a417c1c3097226037700d0241e8268a17 (diff) |
build: Add "build" target.
-rwxr-xr-x | build | 11 | ||||
-rw-r--r-- | jit-test.c | 13 | ||||
-rwxr-xr-x | jit-test.sh | 6 |
3 files changed, 30 insertions, 0 deletions
@@ -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 |