Skip to content

Commit

Permalink
fix makefile for sqlite3
Browse files Browse the repository at this point in the history
Signed-off-by: pingyu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Oct 7, 2022
1 parent 824de93 commit a4230b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FDB_CHECK := $(shell command -v fdbcli 2> /dev/null)
ROCKSDB_CHECK := $(shell echo "int main() { return 0; }" | gcc -lrocksdb -x c++ -o /dev/null - 2>/dev/null; echo $$?)
SQLITE_CHECK := $(shell echo "int main() { return 0; }" | gcc -lsqlite3 -o /dev/null - 2>/dev/null; echo $$?)
SQLITE_CHECK := $(shell echo "int main() { return 0; }" | gcc -lsqlite3 -x c++ -o /dev/null - 2>/dev/null; echo $$?)

TAGS =

ifdef FDB_CHECK
TAGS += foundationdb
endif

ifdef SQLITE_CHECK
ifeq ($(SQLITE_CHECK), 0)
TAGS += libsqlite3
endif

Expand Down

0 comments on commit a4230b6

Please sign in to comment.