mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-20 00:51:32 -08:00
Replace removed WITH_XC_* CMake flags in build scripts
This commit is contained in:
1 parent
07057acae0
commit
e091b3b53c
3 files changed
+3
-4
No files matched your search
@@ -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).
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user