tests: do not run git diff outside of git repo
[sqlgg.git] / example / build
blob86f5b7bf3a1a3a4b7a76a5f4d740dbe4b0dc3a97
1 #! /bin/bash
3 set -e -u
5 sqlgg -gen cxx test.sql > test_cxx_gen.hpp
6 sqlgg -gen caml test.sql > test_caml_gen.ml
8 g++ -g -DSQLGG_DEBUG -o test_cxx test_cxx.cpp -lsqlite3
10 ocamlfind ocamlc -linkpkg -package sqlite3 -w Alse -g -o test_caml -I ../impl ../impl/sqlgg_sqlite3.ml ../impl/sqlgg_traits.ml test_caml_gen.ml test_caml.ml