aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rw-r--r--Makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 4f2c491..3bd2e86 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM alpine:3.24 AS base
FROM base AS builder
-RUN build_deps='bash bsd-compat-headers build-base clang cmake coreutils git json-c-dev libgit2-dev libsodium-dev py3-pytest sqlite-dev valgrind' && \
+RUN build_deps='bash bsd-compat-headers build-base clang cmake coreutils git json-c-dev libgit2-dev libsodium-dev ninja py3-pytest sqlite-dev valgrind' && \
apk add -q --no-cache $build_deps
ARG COMPILER=clang
diff --git a/Makefile b/Makefile
index 75b545e..7e5b0c4 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ build:
@echo -----------------------------------------------------------------
@mkdir -p -- '$(call escape,$(build_dir)/cmake)'
cmake \
- -G 'Unix Makefiles' \
+ -G 'Ninja' \
-D 'CMAKE_C_COMPILER=$(call escape,$(COMPILER))' \
-D 'CMAKE_BUILD_TYPE=$(call escape,$(CONFIGURATION))' \
-D 'CMAKE_INSTALL_PREFIX=$(call escape,$(build_dir)/install)' \
@@ -46,7 +46,7 @@ build:
-D 'FLAME_GRAPHS_DIR=$(call escape,$(build_dir)/flame_graphs)' \
-S '$(call escape,$(src_dir))' \
-B '$(call escape,$(build_dir)/cmake)'
- cmake --build '$(call escape,$(build_dir)/cmake)' -- -j
+ cmake --build '$(call escape,$(build_dir)/cmake)'
.PHONY: debug
debug debug/%: CONFIGURATION := debug