From f37f8d2cd8227e1f059d256c144d000643410097 Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Wed, 21 Dec 2022 08:57:36 +0530 Subject: [PATCH] Allow TYPESENSE_VERSION to be passed to build. --- BUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BUILD b/BUILD index bea2ba44..6ff72875 100644 --- a/BUILD +++ b/BUILD @@ -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"], )