mirror of https://github.com/milvus-io/milvus.git
Add make option to compile for disk index (#19530)
Signed-off-by: xige-16 <xi.ge@zilliz.com> Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/19546/head
parent
3a770f7dd3
commit
6466291953
9
Makefile
9
Makefile
|
@ -20,6 +20,7 @@ LIBRARY_PATH := $(PWD)/lib
|
|||
OS := $(shell uname -s)
|
||||
ARCH := $(shell arch)
|
||||
mode = Release
|
||||
disk_index = OFF
|
||||
|
||||
all: build-cpp build-go
|
||||
|
||||
|
@ -113,19 +114,19 @@ build-go: milvus
|
|||
|
||||
build-cpp:
|
||||
@echo "Building Milvus cpp library ..."
|
||||
@(env bash $(PWD)/scripts/core_build.sh -t ${mode} -f "$(CUSTOM_THIRDPARTY_PATH)")
|
||||
@(env bash $(PWD)/scripts/core_build.sh -t ${mode} -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index})
|
||||
|
||||
build-cpp-embd:
|
||||
@echo "Building **Embedded** Milvus cpp library ..."
|
||||
@(env bash $(PWD)/scripts/core_build.sh -b -t ${mode} -f "$(CUSTOM_THIRDPARTY_PATH)")
|
||||
@(env bash $(PWD)/scripts/core_build.sh -b -t ${mode} -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index})
|
||||
|
||||
build-cpp-with-unittest:
|
||||
@echo "Building Milvus cpp library with unittest ..."
|
||||
@(env bash $(PWD)/scripts/core_build.sh -t ${mode} -u -f "$(CUSTOM_THIRDPARTY_PATH)")
|
||||
@(env bash $(PWD)/scripts/core_build.sh -t ${mode} -u -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index})
|
||||
|
||||
build-cpp-with-coverage:
|
||||
@echo "Building Milvus cpp library with coverage and unittest ..."
|
||||
@(env bash $(PWD)/scripts/core_build.sh -t ${mode} -u -c -f "$(CUSTOM_THIRDPARTY_PATH)")
|
||||
@(env bash $(PWD)/scripts/core_build.sh -t ${mode} -u -c -f "$(CUSTOM_THIRDPARTY_PATH)" -n ${disk_index})
|
||||
|
||||
|
||||
# Run the tests.
|
||||
|
|
|
@ -58,7 +58,7 @@ CUSTOM_THIRDPARTY_PATH=""
|
|||
EMBEDDED_MILVUS="OFF"
|
||||
BUILD_DISK_ANN="OFF"
|
||||
|
||||
while getopts "p:d:t:s:f:ulrcghzmeb" arg; do
|
||||
while getopts "p:d:t:s:f:n:ulrcghzmeb" arg; do
|
||||
case $arg in
|
||||
f)
|
||||
CUSTOM_THIRDPARTY_PATH=$OPTARG
|
||||
|
@ -103,7 +103,7 @@ while getopts "p:d:t:s:f:ulrcghzmeb" arg; do
|
|||
EMBEDDED_MILVUS="ON"
|
||||
;;
|
||||
n)
|
||||
BUILD_DISK_ANN="OFF"
|
||||
BUILD_DISK_ANN=$OPTARG
|
||||
;;
|
||||
h) # help
|
||||
echo "
|
||||
|
|
Loading…
Reference in New Issue