Allow TYPESENSE_VERSION to be passed to build.

This commit is contained in:
Kishore Nallan 2022-12-21 08:57:36 +05:30
parent 2497de11ce
commit f37f8d2cd8

4
BUILD
View File

@ -30,7 +30,6 @@ cc_library(
name = "common_deps",
defines = [
"NDEBUG",
"TYPESENSE_VERSION=\\\"nightly\\\"",
],
linkopts = select({
"@platforms//os:macos": ["-framework Foundation -framework SystemConfiguration"],
@ -70,6 +69,9 @@ cc_binary(
"src/main/typesense_server.cpp",
":src_files",
],
local_defines = [
"TYPESENSE_VERSION=\\\"$(TYPESENSE_VERSION)\\\""
],
copts = COPTS,
deps = [":common_deps"],
)