From f3e7032a31c2186ab6b6093590458ee8aa181522 Mon Sep 17 00:00:00 2001 From: Jose Lombera Date: Sat, 25 Jul 2026 11:53:05 -0600 Subject: [PATCH] Fix BUILD_MODE variable in Makefile and README ada_toml.gpr uses variable ADA_TOML_BUILD_MODE rather than BUILD_MODE, so update Makefile and README accordingly. --- Makefile | 8 ++++---- README.rst | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index db8b489..4da4d61 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ prefix = /usr DESTDIR = $(prefix) LIBRARY_TYPES = static static-pic relocatable -BUILD_MODE = prod +ADA_TOML_BUILD_MODE = prod PROCESSORS = 0 @@ -11,14 +11,14 @@ all: build build: build-static build-static-pic build-relocatable build-%: gprbuild -Pada_toml \ - -XBUILD_MODE=$(BUILD_MODE) \ + -XADA_TOML_BUILD_MODE=$(ADA_TOML_BUILD_MODE) \ -XLIBRARY_TYPE=$* \ -p -j$(PROCESSORS) install: install-static install-static-pic install-relocatable install-%: build-% gprinstall -Pada_toml \ - -XBUILD_MODE=$(BUILD_MODE) \ + -XADA_TOML_BUILD_MODE=$(ADA_TOML_BUILD_MODE) \ -XLIBRARY_TYPE=$* \ --sources-subdir=include/ada-toml \ --prefix="$(DESTDIR)" \ @@ -30,6 +30,6 @@ install-%: build-% clean: clean-static clean-static-pic clean-relocatable clean-%: gprclean -Pada_toml \ - -XBUILD_MODE=$(BUILD_MODE) \ + -XADA_TOML_BUILD_MODE=$(ADA_TOML_BUILD_MODE) \ -XLIBRARY_TYPE=$* \ -p diff --git a/README.rst b/README.rst index bfffa57..c7036ba 100644 --- a/README.rst +++ b/README.rst @@ -33,8 +33,8 @@ manually: gprbuild -Pada_toml.gpr -p This will build in debug mode and produce a static library. In order to build -in production mode, add ``-XBUILD_MODE=prod``, and to build a dynamic library, -add ``-XLIBRARY_TYPE=static``. +in production mode, add ``-XADA_TOML_BUILD_MODE=prod``, and to build a dynamic +library, add ``-XLIBRARY_TYPE=static``. Installation to ``$PREFIX`` is simply done using GPRinstall: