From a0639eb2971037a08cb1a30501665e0ec5964240 Mon Sep 17 00:00:00 2001 From: Alexander Malkov Date: Thu, 26 Oct 2023 15:26:49 +0300 Subject: [PATCH] feat build: update macos build --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index bac0051..ca464a9 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,19 @@ NPROCS ?= $(shell nproc) CLANG_FORMAT ?= clang-format DOCKER_COMPOSE ?= docker-compose +ifeq ($(KERNEL),Darwin) +CMAKE_COMMON_FLAGS += -DUSERVER_NO_WERROR=1 -DUSERVER_CHECK_PACKAGE_VERSIONS=0 \ + -DUSERVER_DOWNLOAD_PACKAGE_CRYPTOPP=1 \ + -DOPENSSL_ROOT_DIR=$(shell brew --prefix openssl) \ + -DUSERVER_PG_INCLUDE_DIR=$(shell pg_config --includedir) \ + -DUSERVER_PG_LIBRARY_DIR=$(shell pg_config --libdir) \ + -DUSERVER_PG_SERVER_LIBRARY_DIR=$(shell pg_config --pkglibdir) \ + -DUSERVER_PG_SERVER_INCLUDE_DIR=$(shell pg_config --includedir-server) +# Macos don't support sanitizers +CMAKE_DEBUG_FLAGS = +endif + + # NOTE: use Makefile.local for customization -include Makefile.local