tree-sitter/script/build-runtime
2018-11-13 15:46:39 -08:00

21 lines
398 B
Bash
Executable file

#!/usr/bin/env bash
# If `CC` isn't set, pick a default compiler
if which -s clang; then
: ${CC:=clang}
else
: ${CC:=gcc}
fi
${CC} \
-c \
-O3 \
-std=c99 \
-I src \
-I include \
-I externals/utf8proc \
src/runtime/runtime.c \
-o runtime.o
ar rcs libruntime.a runtime.o
rm runtime.o