From ddb002fc522a7ab7939a892862febcccd62f23e4 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Sat, 9 Mar 2024 17:10:54 +0000 Subject: [PATCH] Set -Wframe-larger-than=25344 for a typical cmake clang compile. This ensures that in the "usual" development process building and running the tests will enforce this stack limit, which is encountered in google3. This will prevent future development from adding code and tests which blow over this limit and break google3 Change-Id: If722c7029cca63eb7d1e80de4b640b84839bb020 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/66867 Reviewed-by: David Benjamin Commit-Queue: David Benjamin Auto-Submit: Bob Beck --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77ba87305..685b7b470 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,7 +141,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CLANG) endif() if(CLANG) - set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wnewline-eof -fcolor-diagnostics") + set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wnewline-eof -fcolor-diagnostics -Wframe-larger-than=25344") else() # GCC (at least 4.8.4) has a bug where it'll find unreachable free() calls # and declare that the code is trying to free a stack pointer.