diff options
Diffstat (limited to 'scripts/build/p-sqlite.inc')
-rw-r--r-- | scripts/build/p-sqlite.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/build/p-sqlite.inc b/scripts/build/p-sqlite.inc index 8f94cc87..16c1b220 100644 --- a/scripts/build/p-sqlite.inc +++ b/scripts/build/p-sqlite.inc @@ -14,16 +14,17 @@ download_sqlite() { build_sqlite() { cd "${SQLITE_SRC_PATH}" - local CFLAGS="" - local COMP=${CC} - # Check if sanitizers should be used to build stp + # Check if sanitizers should be used to build sqlite if [[ "${SANITIZER_SUFFIX}x" != "x" ]]; then CFLAGS="${SANITIZER_C_FLAGS[*]}" - COMP=${SANITIZER_C_COMPILER} + COMP="${SANITIZER_C_COMPILER}" + else + COMP="${BITCODE_CC}" + [[ -z "${COMP}" ]] && COMP="$(which gcc)" fi - ${COMP} ${CFLAGS} -fPIC -o libsqlite3.so -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -shared sqlite3.c + ${COMP} ${CFLAGS} -fPIC -o libsqlite3.so -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -shared sqlite3.c } install_sqlite() { |