forked from dremio/warpdrive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·29 lines (23 loc) · 889 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
#
# Copyright (C) 2020-2022 Dremio Corporation
#
# See “license.txt” for license information.
# This script is to facilitate building the Driver on Linux
set -e
mkdir -p _build
cd _build
ARROW_GIT_REPOSITORY="${ARROW_GIT_REPOSITORY:=https://github.com/apache/arrow}"
ARROW_GIT_TAG="${ARROW_GIT_TAG:=b050bd0d31db6412256cec3362c0d57c9732e1f2}"
ODBCABSTRACTION_REPO="${ODBCABSTRACTION_REPO:=/opt/flightsql-odbc}"
ODBCABSTRACTION_GIT_TAG="${ODBCABSTRACTION_GIT_TAG:=d2a1029b0641febb0872831bec1b90fe3f635dd3}"
cmake \
-GNinja \
-DOPENSSL_INCLUDE_DIR=/usr/include/openssl \
-DODBCABSTRACTION_REPO=$ODBCABSTRACTION_REPO \
-DODBCABSTRACTION_GIT_TAG=$ODBCABSTRACTION_GIT_TAG \
-DARROW_GIT_REPOSITORY=$ARROW_GIT_REPOSITORY \
-DARROW_GIT_TAG=$ARROW_GIT_TAG \
..
# Ninja should be called at most four times for clean builds
ninja || ninja || ninja || ninja