Just call the C lib 'the library' everywhere, don't call it a 'runtime'

This commit is contained in:
Max Brunsfeld 2019-01-10 15:22:39 -08:00
parent 38417fc8a1
commit 0f2347b318
25 changed files with 57 additions and 95 deletions

21
script/build-lib Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
# If `CC` isn't set, pick a default compiler
if hash clang 2>/dev/null; then
: ${CC:=clang}
else
: ${CC:=gcc}
fi
${CC} \
-c \
-O3 \
-std=c99 \
-I lib/src \
-I lib/include \
-I lib/utf8proc \
lib/src/lib.c \
-o tree-sitter.o
ar rcs libtree-sitter.a tree-sitter.o
rm tree-sitter.o