diff options
| author | Rutger Broekhoff | 2026-08-29 16:12:00 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-29 16:12:00 +0200 |
| commit | a7f3f4bf514ef457f541925bb60fa0b004f920f9 (patch) | |
| tree | 41d8698c5b676da1d1171614ec27c0184193922b /server/CMakeLists.txt | |
| parent | d84998c12f9dead9979989d39e3bc19e70ed4703 (diff) | |
| download | routemon-a7f3f4bf514ef457f541925bb60fa0b004f920f9.tar.gz routemon-a7f3f4bf514ef457f541925bb60fa0b004f920f9.zip | |
Adjust default compiler flags
Diffstat (limited to 'server/CMakeLists.txt')
| -rw-r--r-- | server/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 014ec7c..7522dbe 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt | |||
| @@ -4,8 +4,7 @@ project(routemon LANGUAGES CXX) | |||
| 4 | 4 | ||
| 5 | # Hardening options from https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html | 5 | # Hardening options from https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html |
| 6 | add_compile_options( | 6 | add_compile_options( |
| 7 | # -O2 | 7 | -O2 |
| 8 | # -g | ||
| 9 | -fno-omit-frame-pointer | 8 | -fno-omit-frame-pointer |
| 10 | -Wall -Wextra -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough | 9 | -Wall -Wextra -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough |
| 11 | -Werror=format-security | 10 | -Werror=format-security |