From 0137962441f767fe4db3e37da016d8a3abab9755 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Fri, 4 Sep 2026 02:59:16 +0200 Subject: [PATCH] build: apply the review-fixes build conventions to prefractal The prefractal module landed on main in parallel with the review-fixes branch, so neither of that branch's two build changes covered it: - CMake gated frost, chilldkg and iceberg on SECP256K1_EXPERIMENTAL but not prefractal, leaving CMake accepting a configuration that configure.ac already rejects. - doc/prefractal.md was referenced by no build file, so it would be absent from a release tarball alongside the other module docs. Co-Authored-By: Claude Opus 5 --- CMakeLists.txt | 3 +++ Makefile.am | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 294f948f..a7c71e68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,6 +139,9 @@ if(NOT SECP256K1_EXPERIMENTAL) if(SECP256K1_ENABLE_MODULE_ICEBERG) message(FATAL_ERROR "Iceberg module is experimental. Use -DSECP256K1_EXPERIMENTAL=ON to allow.") endif() + if(SECP256K1_ENABLE_MODULE_PREFRACTAL) + message(FATAL_ERROR "Prefractal module is experimental. Use -DSECP256K1_EXPERIMENTAL=ON to allow.") + endif() endif() set(SECP256K1_VALGRIND "AUTO" CACHE STRING "Build with extra checks for running inside Valgrind. [default=AUTO]") diff --git a/Makefile.am b/Makefile.am index d7a6c125..9467933a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -318,7 +318,7 @@ maintainer-clean-local: clean-testvectors ### Additional files to distribute EXTRA_DIST = autogen.sh CHANGELOG.md SECURITY.md EXTRA_DIST += doc/release-process.md doc/safegcd_implementation.md -EXTRA_DIST += doc/ellswift.md doc/musig.md doc/iceberg.md +EXTRA_DIST += doc/ellswift.md doc/musig.md doc/iceberg.md doc/prefractal.md EXTRA_DIST += src/modules/frost/frost.md src/modules/chilldkg/chilldkg.md EXTRA_DIST += examples/EXAMPLES_COPYING EXTRA_DIST += sage/gen_exhaustive_groups.sage