From e091b3b53c8d60fb3f1e9a3fd6347a8cbe63a0e0 Mon Sep 17 00:00:00 2001 From: BilliamBaSH <250773794+BilliamBaSH@users.noreply.github.com> Date: Sun, 25 Oct 2026 21:56:16 -0400 Subject: [PATCH] Replace removed WITH_XC_* CMake flags in build scripts --- .github/workflows/codeql.yml | 2 +- snap/snapcraft.yaml | 3 +-- utils/fuzz-testing/README.md | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a3e4ae316..c2f7c23e7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -73,7 +73,7 @@ jobs: name: Build C++ run: | mkdir build && cd build - cmake -DWITH_XC_ALL=ON -DWITH_TESTS=OFF .. + cmake -DWITH_TESTS=OFF .. make -j $(nproc) # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6d1533f79..f6b1a2422 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -68,8 +68,7 @@ parts: - -DKEEPASSXC_DIST_TYPE=Snap - -DKEEPASSXC_BUILD_TYPE=Release - -DWITH_TESTS=OFF - - -DWITH_XC_ALL=ON - - -DWITH_XC_UPDATECHECK=OFF + - -DKPXC_FEATURE_UPDATES=OFF build-packages: - g++ - libbotan-2-dev diff --git a/utils/fuzz-testing/README.md b/utils/fuzz-testing/README.md index 9f2c1fc27..e1f6f807b 100644 --- a/utils/fuzz-testing/README.md +++ b/utils/fuzz-testing/README.md @@ -24,7 +24,7 @@ A special "instrumented build" is used that allows the fuzzer to look into the p $ cd your_keepassxc_source_directory $ mkdir buildafl $ cd buildafl - $ CXX=afl-g++ AFL_HARDEN=1 cmake -DWITH_XC_ALL=ON .. + $ CXX=afl-g++ AFL_HARDEN=1 cmake .. $ make In the source code, special behavior for fuzz testing can be implemented with `#ifdef __AFL_COMPILER`. For example, in fuzz builds, the KeePassXC CLI takes the database password from environment variable `KEEPASSXC_AFL_PASSWORD` to allow non-interactive operation.