diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-09-10 09:01:53 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-09-10 09:01:53 +0200 |
| commit | c20011f985ef60855f99dc515b4d407aed0e1eab (patch) | |
| tree | cbc2b042607c92744d78a0ee99204ef4225f2502 /CMakeLists.txt | |
| parent | 2b98a55d1f85684e525386dc27519d83d0b34e50 (diff) | |
| download | kernel-c20011f985ef60855f99dc515b4d407aed0e1eab.tar.xz kernel-c20011f985ef60855f99dc515b4d407aed0e1eab.zip | |
build: include dynamic stack size in warnings
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f622050..852ef690 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,13 +88,13 @@ if(NOT BUILD_TESTING) add_compile_options( "$<$<CXX_COMPILER_ID:GNU>:-fstack-usage>" - "$<$<CXX_COMPILER_ID:GNU>:-Wframe-larger-than=${STACK_FRAME_LIMIT}>" + "$<$<CXX_COMPILER_ID:GNU>:-Wstack-usage=${STACK_FRAME_LIMIT}>" ) add_link_options( "$<$<CXX_COMPILER_ID:GNU>:-fstack-usage>" - "$<$<CXX_COMPILER_ID:GNU>:-Wframe-larger-than=${STACK_FRAME_LIMIT}>" - "$<$<CXX_COMPILER_ID:GNU>:-Werror=frame-larger-than=${STACK_FRAME_LIMIT}>" + "$<$<CXX_COMPILER_ID:GNU>:-Wstack-usage=${STACK_FRAME_LIMIT}>" + "$<$<CXX_COMPILER_ID:GNU>:-Werror=stack-usage=${STACK_FRAME_LIMIT}>" ) unset(STACK_FRAME_LIMIT) |
