Skip to content

Commit 266e68c

Browse files
committed
Update to build libModSecurity with std C++20
1 parent 7bdc3c8 commit 266e68c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Windows build information can be found [here](build/win32/README.md).
8181

8282
## Dependencies
8383

84-
This library is written in C++ using the C++17 standards. It also uses Flex
84+
This library is written in C++ using the C++20 standards. It also uses Flex
8585
and Yacc to produce the “Sec Rules Language” parser. Other, mandatory dependencies include YAJL, as ModSecurity uses JSON for producing logs and its testing framework, libpcre (not yet mandatory) for processing regular expressions in SecRules, and libXML2 (not yet mandatory) which is used for parsing XML requests.
8686

8787
All others dependencies are related to operators specified within SecRules or configuration directives and may not be required for compilation. A short list of such dependencies is as follows:

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PKG_PROG_PKG_CONFIG
5353

5454

5555
# Set C++ standard version and check if compiler supports it.
56-
AX_CXX_COMPILE_STDCXX(17, noext, mandatory)
56+
AX_CXX_COMPILE_STDCXX(20, noext, mandatory)
5757

5858
# Check for libinjection
5959
if ! test -f "${srcdir}/others/libinjection/src/libinjection_html5.c"; then

vcbuild.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if "%3"=="USE_ASAN" (
2020
)
2121

2222
cd build\win32
23-
conan install . -s compiler.cppstd=17 %CI_ASAN% --output-folder=build --build=missing --settings=build_type=%build_type% --settings=arch=%arch%
23+
conan install . -s compiler.cppstd=20 %CI_ASAN% --output-folder=build --build=missing --settings=build_type=%build_type% --settings=arch=%arch%
2424
cd build
2525
cmake --fresh .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DUSE_ASAN=%ASAN_FLAG% %4 %5 %6 %7 %8 %9
2626
cmake --build . --config %build_type%

0 commit comments

Comments
 (0)